Type Alias style::selector_parser::AttrValue

source ·
pub type AttrValue = <SelectorImpl as SelectorImpl>::AttrValue;
Expand description

A convenient alias for the type that represents an attribute value used for selector parser implementation.

Implementations§

source§

impl SelectorImpl

source

pub fn each_eagerly_cascaded_pseudo_element<F>(fun: F)where F: FnMut(PseudoElement),

A helper to traverse each eagerly cascaded pseudo-element, executing fun on it.

Trait Implementations§

source§

impl Clone for SelectorImpl

source§

fn clone(&self) -> SelectorImpl

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SelectorImpl

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl MallocSizeOf for SelectorImpl

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
source§

impl PartialEq<SelectorImpl> for SelectorImpl

source§

fn eq(&self, other: &SelectorImpl) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl SelectorImpl for SelectorImpl

§

type PseudoElement = PseudoElement

pseudo-elements
§

type NonTSPseudoClass = NonTSPseudoClass

non tree-structural pseudo-classes (see: https://drafts.csswg.org/selectors/#structural-pseudos)
§

type ExtraMatchingData<'a> = ExtraMatchingData<'a>

§

type AttrValue = AtomString

§

type Identifier = GenericAtomIdent<AtomStaticSet>

§

type LocalName = GenericAtomIdent<LocalNameStaticSet>

§

type NamespacePrefix = GenericAtomIdent<PrefixStaticSet>

§

type NamespaceUrl = GenericAtomIdent<NamespaceStaticSet>

§

type BorrowedLocalName = Atom<LocalNameStaticSet>

§

type BorrowedNamespaceUrl = Atom<NamespaceStaticSet>

source§

fn should_collect_attr_hash(_name: &Self::LocalName) -> bool

Whether attribute hashes should be collected for filtering purposes.
source§

impl StructuralPartialEq for SelectorImpl