Struct DragPlan
pub struct DragPlan {
pub heights: Vec<f32>,
pub moved: f32,
pub empty: f32,
}Expand description
What a drag does (plan_drag).
Fields§
§heights: Vec<f32>Every section’s height after it, in the order given.
moved: f32How far the boundary moved: down if positive. Less than asked when the stack stopped it; 0 when nothing could move.
empty: f32The empty room left under the last section.
Trait Implementations§
impl StructuralPartialEq for DragPlan
Auto Trait Implementations§
impl Freeze for DragPlan
impl RefUnwindSafe for DragPlan
impl Send for DragPlan
impl Sync for DragPlan
impl Unpin for DragPlan
impl UnsafeUnpin for DragPlan
impl UnwindSafe for DragPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more