Enum style::properties::DeclaredValueOwned
[−]
[src]
pub enum DeclaredValueOwned<T> { Value(T), WithVariables(Arc<UnparsedValue>), CSSWideKeyword(CSSWideKeyword), }
A variant of DeclaredValue that owns its data. This separation exists so that PropertyDeclaration can avoid embedding a DeclaredValue (and its extra discriminant word) and synthesize dependent DeclaredValues for PropertyDeclaration instances as needed.
Variants
Value(T)
A known specified value from the stylesheet.
WithVariables(Arc<UnparsedValue>)
An unparsed value that contains var()
functions.
CSSWideKeyword(CSSWideKeyword)
An CSS-wide keyword.
Trait Implementations
impl<T: Clone> Clone for DeclaredValueOwned<T>
[src]
fn clone(&self) -> DeclaredValueOwned<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for DeclaredValueOwned<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Eq> Eq for DeclaredValueOwned<T>
[src]
impl<T: PartialEq> PartialEq for DeclaredValueOwned<T>
[src]
fn eq(&self, __arg_0: &DeclaredValueOwned<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DeclaredValueOwned<T>) -> bool
[src]
This method tests for !=
.