Enum style::properties::DeclaredValue
[−]
[src]
pub enum DeclaredValue<'a, T: 'a> {
Value(&'a T),
WithVariables(&'a Arc<UnparsedValue>),
CSSWideKeyword(CSSWideKeyword),
}Servo's representation of a declared value for a given T, which is the
declared value for that property.
Variants
Value(&'a T)A known specified value from the stylesheet.
WithVariables(&'a Arc<UnparsedValue>)An unparsed value that contains var() functions.
CSSWideKeyword(CSSWideKeyword)An CSS-wide keyword.
Trait Implementations
impl<'a, T: Clone + 'a> Clone for DeclaredValue<'a, T>[src]
fn clone(&self) -> DeclaredValue<'a, 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<'a, T: Debug + 'a> Debug for DeclaredValue<'a, T>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<'a, T: Eq + 'a> Eq for DeclaredValue<'a, T>[src]
impl<'a, T: PartialEq + 'a> PartialEq for DeclaredValue<'a, T>[src]
fn eq(&self, __arg_0: &DeclaredValue<'a, 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: &DeclaredValue<'a, T>) -> bool[src]
This method tests for !=.