pub struct Fit {
pub heights: Vec<f32>,
pub by_hand: Vec<bool>,
pub overflow: f32,
pub empty: f32,
}Expand description
The heights a stack shows (fit).
Fields§
§heights: Vec<f32>Every section’s height, in the order given (0 when folded).
by_hand: Vec<bool>Whether each section’s height is its own, set by hand.
overflow: f32What the least heights lack to fit in the room: the stack scrolls by this much. 0 when they fit.
empty: f32The empty room shown under the last section: the room left when no section is open.
Trait Implementations§
impl StructuralPartialEq for Fit
Auto Trait Implementations§
impl Forget for Fit
impl Freeze for Fit
impl Move for Fit
impl RefUnwindSafe for Fit
impl Send for Fitwhere
RawVecInner: Send,
impl Sync for Fitwhere
RawVecInner: Sync,
impl Unpin for Fit
impl UnsafeUnpin for Fitwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<bool>: UnsafeUnpin,
impl UnwindSafe for Fitwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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