Enum style::properties::PropertyDeclarationId
[−]
[src]
pub enum PropertyDeclarationId<'a> { Longhand(LonghandId), Custom(&'a Name), }
An identifier for a given property declaration, which can be either a longhand or a custom property.
Variants
Longhand(LonghandId)
A longhand.
Custom(&'a Name)
A custom property declaration.
Methods
impl<'a> PropertyDeclarationId<'a>
[src]
pub fn is_or_is_longhand_of(&self, other: &PropertyId) -> bool
[src]
Whether a given declaration id is either the same as other
, or a
longhand of it.
pub fn is_longhand_of(&self, shorthand: ShorthandId) -> bool
[src]
Whether a given declaration id is a longhand belonging to this shorthand.
pub fn name(&self) -> Cow<'static, str>
[src]
Returns the name of the property without CSS escaping.
Trait Implementations
impl<'a> Clone for PropertyDeclarationId<'a>
[src]
fn clone(&self) -> PropertyDeclarationId<'a>
[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> Copy for PropertyDeclarationId<'a>
[src]
impl<'a> PartialEq for PropertyDeclarationId<'a>
[src]
fn eq(&self, __arg_0: &PropertyDeclarationId<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PropertyDeclarationId<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> MallocSizeOf for PropertyDeclarationId<'a>
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more