pub enum FlexFit {
Loose,
Tight,
}Expand description
How a flexible child fills the share of the spare room it was given — the
reference’s FlexFit.
Variants§
Loose
At most its share, and less if that is all it wants. The child keeps its content size until the share is smaller than that, and only then gives way.
Tight
Exactly its share. The child stops sizing the line at all and is grown into the whole of what is left.
Trait Implementations§
impl Copy for FlexFit
impl Eq for FlexFit
impl StructuralPartialEq for FlexFit
Auto Trait Implementations§
impl Freeze for FlexFit
impl RefUnwindSafe for FlexFit
impl Send for FlexFit
impl Sync for FlexFit
impl Unpin for FlexFit
impl UnsafeUnpin for FlexFit
impl UnwindSafe for FlexFit
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