pub enum Length {
Definite(DefiniteLength),
Auto,
VnCalcSize(VnCalcSize),
}Expand description
A length that can be defined in pixels, rems, percent of parent, or auto.
Variants§
Definite(DefiniteLength)
A definite length specified either in pixels, rems, or as a fraction of the parent’s size.
Auto
An automatic length that is determined by the context in which it is used.
VnCalcSize(VnCalcSize)
vue-native fork: CSS calc-size() in a sizing property, resolved by layout.
Trait Implementations§
impl Copy for Length
Source§impl<'de> Deserialize<'de> for Length
impl<'de> Deserialize<'de> for Length
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more