Struct style::servo::selector_parser::SelectorImpl
source · pub struct SelectorImpl;
Expand description
The abstract struct we implement the selector parser implementation on top of.
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 for SelectorImpl
impl PartialEq for SelectorImpl
source§impl SelectorImpl for SelectorImpl
impl SelectorImpl for SelectorImpl
source§type PseudoElement = PseudoElement
type PseudoElement = PseudoElement
pseudo-elements
source§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.
impl StructuralPartialEq for SelectorImpl
Auto Trait Implementations§
impl Freeze for SelectorImpl
impl RefUnwindSafe for SelectorImpl
impl Send for SelectorImpl
impl Sync for SelectorImpl
impl Unpin for SelectorImpl
impl UnwindSafe for SelectorImpl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert