Enum style::stylesheets::origin::Origin [] [src]

#[repr(u8)]
pub enum Origin { UserAgent, User, Author, }

Each style rule has an origin, which determines where it enters the cascade.

https://drafts.csswg.org/css-cascade/#cascading-origins

Variants

https://drafts.csswg.org/css-cascade/#cascade-origin-user-agent

https://drafts.csswg.org/css-cascade/#cascade-origin-user

https://drafts.csswg.org/css-cascade/#cascade-origin-author

Trait Implementations

impl Clone for Origin
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Origin
[src]

impl Debug for Origin
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Origin
[src]

impl PartialEq for Origin
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl MallocSizeOf for Origin
[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 From<Origin> for OriginSet
[src]

[src]

Performs the conversion.

impl BitOrAssign<Origin> for OriginSet
[src]

[src]

Performs the |= operation.