Skip to main content

Crate selectors

Crate selectors 

Source

Re-exports§

pub use crate::parser::Parser;
pub use crate::parser::SelectorImpl;
pub use crate::parser::SelectorList;

Modules§

attr
bloom
Counting and non-counting Bloom filters tuned for use as ancestor filters for selector matching.
builder 🔒
Helper module to build up a selector safely and efficiently.
context
kleene_value
Kleen logic: https://en.wikipedia.org/wiki/Three-valued_logic#Kleene_and_Priest_logics
matching
nth_index_cache 🔒
parser
relative_selector
sink
Small helpers to abstract over different containers.
subtree_filter
Hashes for the DOM-maintained filter of local names, classes and null-namespace attribute names in an element’s DOM subtree, including itself. Shadow-tree contents are not included. This is separate from the ancestor bloom and the wider, lazily constructed RelativeSelectorFilterMap.
tree 🔒
Traits that nodes must implement. Breaks the otherwise-cyclic dependency between layout and style.
visitor
Visitor traits for selectors.

Structs§

NthIndexCache
A cache to speed up matching of nth-index-like selectors.
OpaqueElement
Opaque representation of an Element, for identity comparisons.

Traits§

Element

Type Aliases§

FxHashMap
A hash map using the Fx hasher.