#[non_exhaustive]pub enum LengthPercentageAuto {
LengthPercentage(CssDimension),
Calculation(CssDimensionExpr),
Auto,
}Expand description
A <length-percentage> | auto value for grammars such as margin and inset offsets.
Typed calculations are also accepted because CSS math functions resolve to a
<length-percentage> in these contexts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LengthPercentage(CssDimension)
A length or percentage.
Calculation(CssDimensionExpr)
A typed length-percentage calculation.
Auto
The auto keyword.
Trait Implementations§
Source§impl Clone for LengthPercentageAuto
impl Clone for LengthPercentageAuto
Source§impl CssWriteTo for LengthPercentageAuto
impl CssWriteTo for LengthPercentageAuto
Source§impl Debug for LengthPercentageAuto
impl Debug for LengthPercentageAuto
Source§impl Display for LengthPercentageAuto
impl Display for LengthPercentageAuto
Source§impl From<CssDimension> for LengthPercentageAuto
impl From<CssDimension> for LengthPercentageAuto
Source§fn from(value: CssDimension) -> Self
fn from(value: CssDimension) -> Self
Converts to this type from the input type.
Source§impl From<CssDimensionExpr> for LengthPercentageAuto
impl From<CssDimensionExpr> for LengthPercentageAuto
Source§fn from(value: CssDimensionExpr) -> Self
fn from(value: CssDimensionExpr) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LengthPercentageAuto
impl PartialEq for LengthPercentageAuto
impl StructuralPartialEq for LengthPercentageAuto
Auto Trait Implementations§
impl Freeze for LengthPercentageAuto
impl RefUnwindSafe for LengthPercentageAuto
impl Send for LengthPercentageAuto
impl Sync for LengthPercentageAuto
impl Unpin for LengthPercentageAuto
impl UnsafeUnpin for LengthPercentageAuto
impl UnwindSafe for LengthPercentageAuto
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
impl<T> CheckedCssValue for Twhere
T: CssWriteTo + Sealed,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.