Re-exports

pub use crate::visitor::SelectorVisitor;

Structs

Ancestor hashes for the bloom filter. We precompute these and store them inline with selectors to optimize cache performance during matching. This matters a lot.
A Selector stores a sequence of simple selectors and combinators. The iterator classes allow callers to iterate at either the raw sequence level or at the level of sequences of simple selectors separated by combinators. Most callers want the higher-level iterator.

Enums

A CSS simple selector or combinator. We store both in the same enum for optimal packing and cache performance, see [1].
How to treat invalid selectors in a selector list.

Traits

A trait that represents a pseudo-class.
A trait that represents a pseudo-element.
This trait allows to define the parser implementation in regards of pseudo-classes/elements

Functions

Type Definitions