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

A longhand.

A custom property declaration.

Methods

impl<'a> PropertyDeclarationId<'a>
[src]

[src]

Whether a given declaration id is either the same as other, or a longhand of it.

[src]

Whether a given declaration id is a longhand belonging to this shorthand.

[src]

Returns the name of the property without CSS escaping.

Trait Implementations

impl<'a> Clone for PropertyDeclarationId<'a>
[src]

[src]

Returns a copy of the value. Read more

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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> MallocSizeOf for PropertyDeclarationId<'a>
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl<'a> ToCss for PropertyDeclarationId<'a>
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more