pub enum State {
Show 69 variants
Hover,
Focus,
Active,
Visited,
Disabled,
Checked,
Indeterminate,
Required,
Valid,
Invalid,
InRange,
OutOfRange,
ReadOnly,
ReadWrite,
Optional,
PlaceholderShown,
Autofill,
Default,
FirstChild,
LastChild,
OnlyChild,
FirstOfType,
LastOfType,
OnlyOfType,
Empty,
Target,
Root,
Not,
Where,
Is,
Has,
Before,
After,
FirstLetter,
FirstLine,
Selection,
Marker,
Placeholder,
File,
Backdrop,
AnyLink,
Link,
LocalLink,
Scope,
Current,
Past,
Future,
Playing,
Paused,
Seeking,
Buffering,
Stalled,
Muted,
VolumeLocked,
UserInvalid,
UserValid,
Modal,
PictureInPicture,
Fullscreen,
Resize,
Scroll,
Snap,
Touch,
UserSelect,
WillChange,
AccentColor,
Appearance,
Cursor,
Outline,
}Expand description
State definitions for pseudo-classes
Variants§
Hover
Hover state
Focus
Focus state
Active
Active state
Visited
Visited state
Disabled
Disabled state
Checked
Checked state
Indeterminate
Indeterminate state
Required
Required state
Valid
Valid state
Invalid
Invalid state
InRange
In-range state
OutOfRange
Out-of-range state
ReadOnly
Read-only state
ReadWrite
Read-write state
Optional
Optional state
PlaceholderShown
Placeholder-shown state
Autofill
Autofill state
Default
Default state
FirstChild
First-child state
LastChild
Last-child state
OnlyChild
Only-child state
FirstOfType
First-of-type state
LastOfType
Last-of-type state
OnlyOfType
Only-of-type state
Empty
Empty state
Target
Target state
Root
Root state
Not
Not state
Where
Where state
Is
Is state
Has
Has state
Before
Before state
After
After state
FirstLetter
First-letter state
FirstLine
First-line state
Selection
Selection state
Marker
Marker state
Placeholder
Placeholder state
File
File state
Backdrop
Backdrop state
AnyLink
Any-link state
Link
Link state
LocalLink
Local-link state
Scope
Scope state
Current
Current state
Past
Past state
Future
Future state
Playing
Playing state
Paused
Paused state
Seeking
Seeking state
Buffering
Buffering state
Stalled
Stalled state
Muted
Muted state
VolumeLocked
Volume-locked state
UserInvalid
User-invalid state
UserValid
User-valid state
Modal
Modal state
PictureInPicture
Picture-in-picture state
Fullscreen
Fullscreen state
Resize
Resize state
Scroll
Scroll state
Snap
Snap state
Touch
Touch state
UserSelect
User-select state
WillChange
Will-change state
AccentColor
Accent-color state
Appearance
Appearance state
Cursor
Cursor state
Outline
Outline state
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.