pub enum Height {
Fixed(f32),
Fill,
Shrink,
Fraction(f32),
Min(f32),
Max(f32),
Range(f32, f32),
}Expand description
How a widget sizes itself on the vertical axis.
Variants§
Fixed(f32)
Exactly f32 logical pixels tall.
Fill
Expand to fill all available height.
Shrink
Shrink to fit intrinsic content height.
Fraction(f32)
A fraction 0.0–1.0 of the parent’s available height.
Min(f32)
At least f32 pixels tall; may grow larger.
Max(f32)
At most f32 pixels tall; may be smaller.
Range(f32, f32)
Clamped between (min, max) pixels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Height
impl RefUnwindSafe for Height
impl Send for Height
impl Sync for Height
impl Unpin for Height
impl UnsafeUnpin for Height
impl UnwindSafe for Height
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