pub struct Simple;
Expand description
A simple implementation of SelectorImpl
with no pseudo-classes or pseudo-elements.
Trait Implementations§
Source§impl SelectorImpl for Simple
impl SelectorImpl for Simple
type AttrValue = CssString
type Identifier = CssLocalName
type LocalName = CssLocalName
type NamespacePrefix = CssLocalName
type NamespaceUrl = Atom<NamespaceStaticSet>
type BorrowedNamespaceUrl = Atom<NamespaceStaticSet>
type BorrowedLocalName = CssLocalName
Source§type NonTSPseudoClass = NonTSPseudoClass
type NonTSPseudoClass = NonTSPseudoClass
non tree-structural pseudo-classes
(see: https://drafts.csswg.org/selectors/#structural-pseudos)
Source§type PseudoElement = PseudoElement
type PseudoElement = PseudoElement
pseudo-elements
type ExtraMatchingData<'a> = PhantomData<&'a ()>
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 Copy for Simple
impl Eq for Simple
impl StructuralPartialEq for Simple
Auto Trait Implementations§
impl Freeze for Simple
impl RefUnwindSafe for Simple
impl Send for Simple
impl Sync for Simple
impl Unpin for Simple
impl UnwindSafe for Simple
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.