pub enum Length {
Px(f32),
Percent(f32),
Auto,
}Expand description
A length along one axis.
Variants§
Px(f32)
A fixed length in logical pixels.
Percent(f32)
A percentage of the containing block’s size, where 50.0 is half.
Auto
A length the layout algorithm computes from the content and the space available.
Implementations§
Trait Implementations§
impl Copy for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl Forget for Length
impl Freeze for Length
impl Move for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnsafeUnpin for Length
impl UnwindSafe for Length
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