pub enum Length {
Definite(DefiniteLength),
Auto,
}
Expand description
A length that can be defined in pixels, rems, percent of parent, or auto.
Variants§
Definite(DefiniteLength)
Auto
Trait Implementations§
source§impl From<AbsoluteLength> for Length
impl From<AbsoluteLength> for Length
source§fn from(length: AbsoluteLength) -> Self
fn from(length: AbsoluteLength) -> Self
Converts to this type from the input type.
source§impl From<DefiniteLength> for Length
impl From<DefiniteLength> for Length
source§fn from(length: DefiniteLength) -> Self
fn from(length: DefiniteLength) -> Self
Converts to this type from the input type.
impl Copy for Length
Auto Trait Implementations§
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin 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