pub enum Size {
Unset,
Auto,
Length(u32),
Percent(f32),
}Expand description
Defines a width or height of an element.
Variants§
Unset
The default behavior.
Auto
Automatically selects a suitable size.
Length(u32)
Sets an absolute value.
Percent(f32)
Sets a percentage of the width or height of the parent.
Trait Implementations§
Source§impl From<Size> for LengthPercentageAuto
impl From<Size> for LengthPercentageAuto
impl Copy for Size
impl StructuralPartialEq 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