Struct selectors::matching::MatchingContext [] [src]

pub struct MatchingContext<'a> {
    pub relations: StyleRelations,
    pub matching_mode: MatchingMode,
    pub bloom_filter: Option<&'a BloomFilter>,
}

Data associated with the matching process for a element. This context is used across many selectors for an element, so it's not appropriate for transient data that applies to only a single selector.

Fields

Output that records certains relations between elements noticed during matching (and also extended after matching).

The matching mode we should use when matching selectors.

The bloom filter used to fast-reject selectors.

Methods

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

Constructs a new MatchingContext.