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
impl SelectorImpl
sourcepub fn each_eagerly_cascaded_pseudo_element<F>(fun: F)where
F: FnMut(PseudoElement),
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
impl Clone for SelectorImpl
source§fn clone(&self) -> SelectorImpl
fn clone(&self) -> SelectorImpl
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SelectorImpl
impl Debug for SelectorImpl
source§impl MallocSizeOf for SelectorImpl
impl MallocSizeOf for SelectorImpl
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
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
impl PartialEq<SelectorImpl> for SelectorImpl
source§fn eq(&self, other: &SelectorImpl) -> bool
fn eq(&self, other: &SelectorImpl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SelectorImpl for SelectorImpl
impl SelectorImpl for SelectorImpl
§type PseudoElement = PseudoElement
type PseudoElement = PseudoElement
pseudo-elements
§type NonTSPseudoClass = NonTSPseudoClass
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
fn should_collect_attr_hash(_name: &Self::LocalName) -> bool
Whether attribute hashes should be collected for filtering
purposes.