pub enum PseudoClass<'i> {
Show 48 variants Lang(Vec<CowArcStr<'i>>), Dir(Direction), Hover, Active, Focus, FocusVisible, FocusWithin, Current, Past, Future, Playing, Paused, Seeking, Buffering, Stalled, Muted, VolumeLocked, Fullscreen(VendorPrefix), Defined, AnyLink(VendorPrefix), Link, LocalLink, Target, TargetWithin, Visited, Enabled, Disabled, ReadOnly(VendorPrefix), ReadWrite(VendorPrefix), PlaceholderShown(VendorPrefix), Default, Checked, Indeterminate, Blank, Valid, Invalid, InRange, OutOfRange, Required, Optional, UserValid, UserInvalid, Autofill(VendorPrefix), Local(Box<Selector<'i>>), Global(Box<Selector<'i>>), WebKitScrollbar(WebKitScrollbarPseudoClass), Custom(CowArcStr<'i>), CustomFunction(CowArcStr<'i>, TokenList<'i>),
}
Expand description

A pseudo class.

Variants§

§

Lang(Vec<CowArcStr<'i>>)

The :lang() pseudo class.

§

Dir(Direction)

The :dir() pseudo class.

§

Hover

The :hover pseudo class.

§

Active

The :active pseudo class.

§

Focus

The :focus pseudo class.

§

FocusVisible

The :focus-visible pseudo class.

§

FocusWithin

The :focus-within pseudo class.

§

Current

The :current pseudo class.

§

Past

The :past pseudo class.

§

Future

The :future pseudo class.

§

Playing

The :playing pseudo class.

§

Paused

The :paused pseudo class.

§

Seeking

The :seeking pseudo class.

§

Buffering

The :buffering pseudo class.

§

Stalled

The :stalled pseudo class.

§

Muted

The :muted pseudo class.

§

VolumeLocked

The :volume-locked pseudo class.

§

Fullscreen(VendorPrefix)

The :fullscreen pseudo class.

§

Defined

The :defined pseudo class.

The :any-link pseudo class.

The :link pseudo class.

The :local-link pseudo class.

§

Target

The :target pseudo class.

§

TargetWithin

The :target-within pseudo class.

§

Visited

The :visited pseudo class.

§

Enabled

The :enabled pseudo class.

§

Disabled

The :disabled pseudo class.

§

ReadOnly(VendorPrefix)

The :read-only pseudo class.

§

ReadWrite(VendorPrefix)

The :read-write pseudo class.

§

PlaceholderShown(VendorPrefix)

The :placeholder-shown pseudo class.

§

Default

The :default pseudo class.

§

Checked

The :checked pseudo class.

§

Indeterminate

The :indeterminate pseudo class.

§

Blank

The :blank pseudo class.

§

Valid

The :valid pseudo class.

§

Invalid

The :invalid pseudo class.

§

InRange

The :in-range pseudo class.

§

OutOfRange

The :out-of-range pseudo class.

§

Required

The :required pseudo class.

§

Optional

The :optional pseudo class.

§

UserValid

The :user-valid pseudo class.

§

UserInvalid

The :used-invalid pseudo class.

§

Autofill(VendorPrefix)

The :autofill pseudo class.

§

Local(Box<Selector<'i>>)

The CSS modules :local() pseudo class.

§

Global(Box<Selector<'i>>)

The CSS modules :global() pseudo class.

§

WebKitScrollbar(WebKitScrollbarPseudoClass)

A webkit scrollbar pseudo class.

§

Custom(CowArcStr<'i>)

An unknown pseudo class.

§

CustomFunction(CowArcStr<'i>, TokenList<'i>)

An unknown functional pseudo class.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
The SelectorImpl this pseudo-element is used for.
Whether this pseudo-class is :active or :hover.
Whether this pseudo-class belongs to: Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize self in CSS syntax, writing to dest.
Serialize self in CSS syntax and return a string. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type for metadata in pointers and references to Self.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.