Module selectors::parser

source Β·

Re-exports§

Macros§

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.
  • AncestorIter πŸ”’
    An iterator over all simple selectors belonging to ancestors.
  • Composition of combinators in a given selector, not traversing selectors of pseudoclasses.
  • CombinatorIter πŸ”’
    An iterator over all combinators in a selector. Does not traverse selectors within psuedoclasses.
  • What kind of selectors potentially matching featureless shawdow host are present.
  • The properties that comprise an :nth- pseudoclass as of Selectors 4 (e.g., nth-child(An+B [of S]?)). https://www.w3.org/TR/selectors-4/#nth-child-pseudo
  • The properties that comprise an :nth- pseudoclass as of Selectors 3 (e.g., nth-child(An+B)). https://www.w3.org/TR/selectors-3/#nth-child-pseudo
  • Storage for a relative selector.
  • Count of combinators in a given relative selector, not traversing selectors of pseudoclasses.
  • 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.
  • Uniquely identify a selector based on its components, which is behind ThinArc and is therefore stable.
  • A selector list is a tagged pointer with either a single selector, or a ThinArc<()> of multiple selectors.
  • Flags that indicate at which point of parsing a selector are we.

Enums§

Traits§

Functions§

Type Aliases§