pub struct DeclarationValue<T>(/* private fields */);Expand description
A checked literal or a typed custom-property reference for one CSS grammar.
The representation is private so callers cannot construct an untyped variable reference or
raw fallback token stream. Public conversions are available only for CheckedCssValue
grammars.
Trait Implementations§
Source§impl<T: Clone> Clone for DeclarationValue<T>
impl<T: Clone> Clone for DeclarationValue<T>
Source§impl<T: CheckedCssValue> CssWriteTo for DeclarationValue<T>
impl<T: CheckedCssValue> CssWriteTo for DeclarationValue<T>
Source§impl<T: Debug> Debug for DeclarationValue<T>
impl<T: Debug> Debug for DeclarationValue<T>
Source§impl<T: CheckedCssValue> Display for DeclarationValue<T>
impl<T: CheckedCssValue> Display for DeclarationValue<T>
Source§impl<T: CheckedCssValue> From<CssVariableReference<T>> for DeclarationValue<T>
impl<T: CheckedCssValue> From<CssVariableReference<T>> for DeclarationValue<T>
Source§fn from(value: CssVariableReference<T>) -> Self
fn from(value: CssVariableReference<T>) -> Self
Converts to this type from the input type.
Source§impl From<LengthPercentageCalculation> for DeclarationValue<NonNegativeLengthPercentageValue>
impl From<LengthPercentageCalculation> for DeclarationValue<NonNegativeLengthPercentageValue>
Source§fn from(value: LengthPercentageCalculation) -> Self
fn from(value: LengthPercentageCalculation) -> Self
Converts to this type from the input type.
Source§impl From<NonNegativeLengthPercentage> for DeclarationValue<NonNegativeLengthPercentageValue>
impl From<NonNegativeLengthPercentage> for DeclarationValue<NonNegativeLengthPercentageValue>
Source§fn from(value: NonNegativeLengthPercentage) -> Self
fn from(value: NonNegativeLengthPercentage) -> Self
Converts to this type from the input type.
Source§impl<T: CheckedCssValue> From<T> for DeclarationValue<T>
impl<T: CheckedCssValue> From<T> for DeclarationValue<T>
Source§impl<T: PartialEq> PartialEq for DeclarationValue<T>
impl<T: PartialEq> PartialEq for DeclarationValue<T>
impl<T: PartialEq> StructuralPartialEq for DeclarationValue<T>
Auto Trait Implementations§
impl<T> Freeze for DeclarationValue<T>where
DeclarationValueKind<T>: Freeze,
impl<T> RefUnwindSafe for DeclarationValue<T>where
DeclarationValueKind<T>: RefUnwindSafe,
impl<T> Send for DeclarationValue<T>where
DeclarationValueKind<T>: Send,
impl<T> Sync for DeclarationValue<T>where
DeclarationValueKind<T>: Sync,
impl<T> Unpin for DeclarationValue<T>where
DeclarationValueKind<T>: Unpin,
impl<T> UnsafeUnpin for DeclarationValue<T>where
DeclarationValueKind<T>: UnsafeUnpin,
impl<T> UnwindSafe for DeclarationValue<T>where
DeclarationValueKind<T>: UnwindSafe,
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.