pub enum QueryPseudoClass {
Show 19 variants
AtRule(Colon, Ident),
Computed(Colon, Ident),
Custom(Colon, Ident),
Empty(Colon, Ident),
FirstChild(Colon, Ident),
FirstOfType(Colon, Ident),
Function(Colon, Ident),
Important(Colon, Ident),
LastChild(Colon, Ident),
LastOfType(Colon, Ident),
Longhand(Colon, Ident),
Nested(Colon, Ident),
OnlyChild(Colon, Ident),
OnlyOfType(Colon, Ident),
Prefixed(Colon, Ident),
Root(Colon, Ident),
Rule(Colon, Ident),
Shorthand(Colon, Ident),
Unknown(Colon, Ident),
}Variants§
AtRule(Colon, Ident)
Computed(Colon, Ident)
Custom(Colon, Ident)
Empty(Colon, Ident)
FirstChild(Colon, Ident)
FirstOfType(Colon, Ident)
Function(Colon, Ident)
Important(Colon, Ident)
LastChild(Colon, Ident)
LastOfType(Colon, Ident)
Longhand(Colon, Ident)
Nested(Colon, Ident)
OnlyChild(Colon, Ident)
OnlyOfType(Colon, Ident)
Prefixed(Colon, Ident)
Root(Colon, Ident)
Rule(Colon, Ident)
Shorthand(Colon, Ident)
Unknown(Colon, Ident)
Implementations§
Source§impl QueryPseudoClass
impl QueryPseudoClass
Sourcepub fn matching_metadata_pseudos(
meta: &CssMetadata,
) -> impl Iterator<Item = &'static str>
pub fn matching_metadata_pseudos( meta: &CssMetadata, ) -> impl Iterator<Item = &'static str>
Returns an iterator of metadata-based pseudo-class names that match the given metadata.
This only includes pseudos that can be determined from metadata alone,
excluding positional pseudos like :first-child or :nth-of-type.
Trait Implementations§
Source§impl Clone for QueryPseudoClass
impl Clone for QueryPseudoClass
Source§fn clone(&self) -> QueryPseudoClass
fn clone(&self) -> QueryPseudoClass
Returns a duplicate 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 QueryPseudoClass
impl Debug for QueryPseudoClass
Source§impl Hash for QueryPseudoClass
impl Hash for QueryPseudoClass
Source§impl NodeWithMetadata<QuerySelectorMetadata> for QueryPseudoClass
impl NodeWithMetadata<QuerySelectorMetadata> for QueryPseudoClass
Source§fn self_metadata(&self) -> QuerySelectorMetadata
fn self_metadata(&self) -> QuerySelectorMetadata
Returns the metadata contributed by this node itself, not including children.
Most nodes don’t contribute metadata, so can simply return
M::default().
Nodes like StyleRule or AtRules should return their own node kind flags here.Source§fn metadata(&self) -> QuerySelectorMetadata
fn metadata(&self) -> QuerySelectorMetadata
Returns the complete aggregated metadata for this node (self + children).
Default implementation merges children’s metadata with self_metadata().
Source§impl Ord for QueryPseudoClass
impl Ord for QueryPseudoClass
Source§fn cmp(&self, other: &QueryPseudoClass) -> Ordering
fn cmp(&self, other: &QueryPseudoClass) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for QueryPseudoClass
impl<'a> Parse<'a> for QueryPseudoClass
Source§impl PartialEq for QueryPseudoClass
impl PartialEq for QueryPseudoClass
Source§impl PartialOrd for QueryPseudoClass
impl PartialOrd for QueryPseudoClass
Source§impl<'a> Peek<'a> for QueryPseudoClass
impl<'a> Peek<'a> for QueryPseudoClass
Source§impl ToCursors for QueryPseudoClass
impl ToCursors for QueryPseudoClass
fn to_cursors(&self, s: &mut impl CursorSink)
impl Copy for QueryPseudoClass
impl Eq for QueryPseudoClass
impl StructuralPartialEq for QueryPseudoClass
Auto Trait Implementations§
impl Freeze for QueryPseudoClass
impl RefUnwindSafe for QueryPseudoClass
impl Send for QueryPseudoClass
impl Sync for QueryPseudoClass
impl Unpin for QueryPseudoClass
impl UnsafeUnpin for QueryPseudoClass
impl UnwindSafe for QueryPseudoClass
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.