pub enum Length {
Auto,
Px(Px),
Fraction(f32),
Fill,
}Variants§
Auto
Px(Px)
Fraction(f32)
Fraction of the containing block size (percent sizing).
This is expressed as a ratio (e.g. 0.5 for 50%). When the containing block size is not
definite, this should behave like Auto (CSS-like percent sizing semantics).
Fill
Trait Implementations§
impl Copy for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl Freeze 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