Enum style::rule_tree::CascadeLevel [] [src]

#[repr(u8)]
pub enum CascadeLevel { UANormal, PresHints, UserNormal, AuthorNormal, StyleAttributeNormal, SMILOverride, Animations, AuthorImportant, StyleAttributeImportant, UserImportant, UAImportant, Transitions, }

The cascade level these rules are relevant at, as per1.

The order of variants declared here is significant, and must be in ascending order of precedence.

Variants

Normal User-Agent rules.

Presentational hints.

User normal rules.

Author normal rules.

Style attribute normal rules.

SVG SMIL animations.

CSS animations and script-generated animations.

Author-supplied important rules.

Style attribute important rules.

User important rules.

User-agent important rules.

Transitions

NB: If this changes from being last, change from_byte below.

Methods

impl CascadeLevel
[src]

[src]

Converts a raw byte to a CascadeLevel.

[src]

Select a lock guard for this level

[src]

Returns whether this cascade level is unique per element, in which case we can replace the path in the cascade without fear.

[src]

Returns whether this cascade level represents important rules of some sort.

[src]

Returns the importance relevant for this rule. Pretty similar to is_important.

[src]

Returns whether this cascade level represents an animation rules.

Trait Implementations

impl Clone for CascadeLevel
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CascadeLevel
[src]

impl Debug for CascadeLevel
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for CascadeLevel
[src]

impl PartialEq for CascadeLevel
[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 PartialOrd for CascadeLevel
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl MallocSizeOf for CascadeLevel
[src]

[src]

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