pub enum Size {
Shrink,
Exact(f32),
Fill(u32),
}
Expand description
A sizing request
Variants§
Shrink
Try to fit all children exactly
Exact(f32)
An exact size in units
Fill(u32)
Fill the available space using a weight in units.
The available space is divided between Fill
sizes according to their weight.
Implementations§
Trait Implementations§
impl Copy for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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