Struct style::context::CascadeInputs [] [src]

pub struct CascadeInputs {
    pub rules: Option<StrongRuleNode>,
    pub visited_rules: Option<StrongRuleNode>,
}

The structure holds various intermediate inputs that are eventually used by by the cascade.

The matching and cascading process stores them in this format temporarily within the CurrentElementInfo. At the end of the cascade, they are folded down into the main ComputedValues to reduce memory usage per element while still remaining accessible.

Fields

The rule node representing the ordered list of rules matched for this node.

The rule node representing the ordered list of rules matched for this node if visited, only computed if there's a relevant link for this element. A element's "relevant link" is the element being matched if it is a link or the nearest ancestor link.

Methods

impl CascadeInputs
[src]

[src]

Construct inputs from previous cascade results, if any.

Trait Implementations

impl Clone for CascadeInputs
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for CascadeInputs
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for CascadeInputs
[src]

[src]

Formats the value using the given formatter. Read more