pub enum Length {
Definite(DefiniteLength),
Auto,
}Expand description
A length a style gives a box: definite, or auto (sized by layout).
Variants§
Implementations§
Trait Implementations§
impl Copy for Length
impl Eq for Length
Source§impl From<AbsoluteLength> for Length
impl From<AbsoluteLength> for Length
Source§fn from(a: AbsoluteLength) -> Self
fn from(a: AbsoluteLength) -> Self
Converts to this type from the input type.
Source§impl From<DefiniteLength> for Length
impl From<DefiniteLength> for Length
Source§fn from(d: DefiniteLength) -> Self
fn from(d: DefiniteLength) -> Self
Converts to this type from the input type.
Source§impl From<Length> for LengthPercentageAuto
impl From<Length> for LengthPercentageAuto
Source§impl From<Percentage> for Length
impl From<Percentage> for Length
Source§fn from(f: Percentage) -> Self
fn from(f: Percentage) -> Self
Converts to this type from the input type.
Source§impl IntoReactive<Length> for Length
impl IntoReactive<Length> for Length
Source§impl IntoReactive<Length> for Points
impl IntoReactive<Length> for Points
Source§impl IntoReactive<Length> for Rems
impl IntoReactive<Length> for Rems
Source§impl IntoReactive<Length> for AbsoluteLength
impl IntoReactive<Length> for AbsoluteLength
Source§impl IntoReactive<Length> for DefiniteLength
impl IntoReactive<Length> for DefiniteLength
Source§impl IntoReactive<Length> for Percentage
impl IntoReactive<Length> for Percentage
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