Enum style::servo::selector_parser::NonTSPseudoClass
source · pub enum NonTSPseudoClass {
Show 20 variants
Active,
AnyLink,
Checked,
Valid,
Invalid,
Defined,
Disabled,
Enabled,
Focus,
Fullscreen,
Hover,
Indeterminate,
Lang(Lang),
Link,
PlaceholderShown,
ReadWrite,
ReadOnly,
ServoNonZeroBorder,
Target,
Visited,
}
Expand description
A non tree-structural pseudo-class. See https://drafts.csswg.org/selectors-4/#structural-pseudos
Variants§
Active
AnyLink
Checked
Valid
Invalid
Defined
Disabled
Enabled
Focus
Fullscreen
Hover
Indeterminate
Lang(Lang)
Link
PlaceholderShown
ReadWrite
ReadOnly
ServoNonZeroBorder
Target
Visited
Implementations§
source§impl NonTSPseudoClass
impl NonTSPseudoClass
sourcepub fn state_flag(&self) -> ElementState
pub fn state_flag(&self) -> ElementState
Gets a given state flag for this pseudo-class. This is used to do selector matching, and it’s set from the DOM.
sourcepub fn document_state_flag(&self) -> DocumentState
pub fn document_state_flag(&self) -> DocumentState
Get the document state flag associated with a pseudo-class, if any.
sourcepub fn needs_cache_revalidation(&self) -> bool
pub fn needs_cache_revalidation(&self) -> bool
Returns true if the given pseudoclass should trigger style sharing cache revalidation.
Trait Implementations§
source§impl Clone for NonTSPseudoClass
impl Clone for NonTSPseudoClass
source§fn clone(&self) -> NonTSPseudoClass
fn clone(&self) -> NonTSPseudoClass
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 NonTSPseudoClass
impl Debug for NonTSPseudoClass
source§impl Hash for NonTSPseudoClass
impl Hash for NonTSPseudoClass
source§impl MallocSizeOf for NonTSPseudoClass
impl MallocSizeOf for NonTSPseudoClass
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 NonTSPseudoClass for NonTSPseudoClass
impl NonTSPseudoClass for NonTSPseudoClass
§type Impl = SelectorImpl
type Impl = SelectorImpl
The
SelectorImpl
this pseudo-element is used for.source§fn is_active_or_hover(&self) -> bool
fn is_active_or_hover(&self) -> bool
Whether this pseudo-class is :active or :hover.
source§fn is_user_action_state(&self) -> bool
fn is_user_action_state(&self) -> bool
Whether this pseudo-class belongs to: Read more
fn visit<V>(&self, _: &mut V) -> boolwhere
V: SelectorVisitor<Impl = Self::Impl>,
source§impl PartialEq<NonTSPseudoClass> for NonTSPseudoClass
impl PartialEq<NonTSPseudoClass> for NonTSPseudoClass
source§fn eq(&self, other: &NonTSPseudoClass) -> bool
fn eq(&self, other: &NonTSPseudoClass) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToCss for NonTSPseudoClass
impl ToCss for NonTSPseudoClass
source§impl ToShmem for NonTSPseudoClass
impl ToShmem for NonTSPseudoClass
impl Eq for NonTSPseudoClass
impl StructuralEq for NonTSPseudoClass
impl StructuralPartialEq for NonTSPseudoClass
Auto Trait Implementations§
impl RefUnwindSafe for NonTSPseudoClass
impl Send for NonTSPseudoClass
impl Sync for NonTSPseudoClass
impl Unpin for NonTSPseudoClass
impl UnwindSafe for NonTSPseudoClass
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
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