#[non_exhaustive]pub enum PseudoClass {
Show 50 variants
Active,
ActiveViewTransition,
AnyLink,
Autofill,
Buffering,
Checked,
Default,
Defined,
Disabled,
Empty,
Enabled,
FirstChild,
FirstOfType,
Focus,
FocusVisible,
FocusWithin,
Fullscreen,
Future,
HasSlotted,
Hover,
InRange,
Indeterminate,
Invalid,
LastChild,
LastOfType,
Link,
Modal,
Muted,
OnlyChild,
OnlyOfType,
Open,
Optional,
OutOfRange,
Past,
Paused,
PictureInPicture,
PlaceholderShown,
Playing,
PopoverOpen,
ReadOnly,
ReadWrite,
Required,
Seeking,
Stalled,
Target,
UserInvalid,
UserValid,
Valid,
Visited,
VolumeLocked,
}Expand description
A standard pseudo-class without arguments.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Active
:active.
ActiveViewTransition
:active-view-transition.
AnyLink
:any-link.
Autofill
:autofill.
Buffering
:buffering.
Checked
:checked.
Default
:default.
Defined
:defined.
Disabled
:disabled.
Empty
:empty.
Enabled
:enabled.
FirstChild
:first-child.
FirstOfType
:first-of-type.
Focus
:focus.
FocusVisible
:focus-visible.
FocusWithin
:focus-within.
Fullscreen
:fullscreen.
Future
:future.
HasSlotted
:has-slotted.
Hover
:hover.
InRange
:in-range.
Indeterminate
:indeterminate.
Invalid
:invalid.
LastChild
:last-child.
LastOfType
:last-of-type.
Link
:link.
Modal
:modal.
Muted
:muted.
OnlyChild
:only-child.
OnlyOfType
:only-of-type.
Open
:open.
Optional
:optional.
OutOfRange
:out-of-range.
Past
:past.
Paused
:paused.
PictureInPicture
:picture-in-picture.
PlaceholderShown
:placeholder-shown.
Playing
:playing.
PopoverOpen
:popover-open.
ReadOnly
:read-only.
ReadWrite
:read-write.
Required
:required.
Seeking
:seeking.
Stalled
:stalled.
Target
:target.
UserInvalid
:user-invalid.
UserValid
:user-valid.
Valid
:valid.
Visited
:visited.
VolumeLocked
:volume-locked.
Implementations§
Trait Implementations§
Source§impl Clone for PseudoClass
impl Clone for PseudoClass
Source§fn clone(&self) -> PseudoClass
fn clone(&self) -> PseudoClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PseudoClass
Source§impl Debug for PseudoClass
impl Debug for PseudoClass
impl Eq for PseudoClass
Source§impl From<PseudoClass> for Condition
impl From<PseudoClass> for Condition
Source§fn from(p: PseudoClass) -> Self
fn from(p: PseudoClass) -> Self
Converts to this type from the input type.
Source§impl Hash for PseudoClass
impl Hash for PseudoClass
Source§impl Ord for PseudoClass
impl Ord for PseudoClass
Source§fn cmp(&self, other: &PseudoClass) -> Ordering
fn cmp(&self, other: &PseudoClass) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for PseudoClass
impl PartialEq for PseudoClass
Source§impl PartialOrd for PseudoClass
impl PartialOrd for PseudoClass
impl StructuralPartialEq for PseudoClass
Auto Trait Implementations§
impl Freeze for PseudoClass
impl RefUnwindSafe for PseudoClass
impl Send for PseudoClass
impl Sync for PseudoClass
impl Unpin for PseudoClass
impl UnsafeUnpin for PseudoClass
impl UnwindSafe for PseudoClass
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