Enum style::servo::selector_parser::NonTSPseudoClass
source · pub enum NonTSPseudoClass {
Show 33 variants
Active,
AnyLink,
Autofill,
Checked,
CustomState(CustomState),
Default,
Defined,
Disabled,
Enabled,
Focus,
FocusWithin,
FocusVisible,
Fullscreen,
Hover,
InRange,
Indeterminate,
Invalid,
Lang(Lang),
Link,
Modal,
Optional,
OutOfRange,
PlaceholderShown,
PopoverOpen,
ReadOnly,
ReadWrite,
Required,
ServoNonZeroBorder,
Target,
UserInvalid,
UserValid,
Valid,
Visited,
}
Expand description
A non tree-structural pseudo-class. See https://drafts.csswg.org/selectors-4/#structural-pseudos
Variants§
Active
AnyLink
Autofill
Checked
CustomState(CustomState)
The :state` pseudo-class.
Default
Defined
Disabled
Enabled
Focus
FocusWithin
FocusVisible
Fullscreen
Hover
InRange
Indeterminate
Invalid
Lang(Lang)
Link
Modal
Optional
OutOfRange
PlaceholderShown
PopoverOpen
ReadOnly
ReadWrite
Required
ServoNonZeroBorder
Target
UserInvalid
UserValid
Valid
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 for NonTSPseudoClass
impl PartialEq 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 StructuralPartialEq for NonTSPseudoClass
Auto Trait Implementations§
impl Freeze for NonTSPseudoClass
impl RefUnwindSafe for NonTSPseudoClass
impl Send for NonTSPseudoClass
impl Sync for NonTSPseudoClass
impl Unpin for NonTSPseudoClass
impl UnwindSafe for NonTSPseudoClass
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<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.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