Enum lightningcss::selector::PseudoClass
source · pub enum PseudoClass<'i> {
Show 53 variants
Lang {
languages: Vec<CowArcStr<'i>>,
},
Dir {
direction: Direction,
},
Hover,
Active,
Focus,
FocusVisible,
FocusWithin,
Current,
Past,
Future,
Playing,
Paused,
Seeking,
Buffering,
Stalled,
Muted,
VolumeLocked,
Fullscreen(VendorPrefix),
Open,
Closed,
Modal,
PictureInPicture,
PopoverOpen,
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 {
selector: Box<Selector<'i>>,
},
Global {
selector: Box<Selector<'i>>,
},
WebKitScrollbar(WebKitScrollbarPseudoClass),
Custom {
name: CowArcStr<'i>,
},
CustomFunction {
name: CowArcStr<'i>,
arguments: TokenList<'i>,
},
}
Expand description
A pseudo class.
Variants§
Lang
The :lang() pseudo class.
Dir
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.
Open
The :open pseudo class.
Closed
The :closed pseudo class.
Modal
The :modal pseudo class.
PictureInPicture
The :picture-in-picture pseudo class.
PopoverOpen
The :popover-open pseudo class.
Defined
The :defined pseudo class.
AnyLink(VendorPrefix)
The :any-link pseudo class.
Link
The :link pseudo class.
LocalLink
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
The CSS modules :local() pseudo class.
Global
The CSS modules :global() pseudo class.
WebKitScrollbar(WebKitScrollbarPseudoClass)
A webkit scrollbar pseudo class.
Custom
An unknown pseudo class.
CustomFunction
An unknown functional pseudo class.
Trait Implementations§
source§impl<'i> Clone for PseudoClass<'i>
impl<'i> Clone for PseudoClass<'i>
source§fn clone(&self) -> PseudoClass<'i>
fn clone(&self) -> PseudoClass<'i>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de: 'i, 'i> Deserialize<'de> for PseudoClass<'i>
impl<'de: 'i, 'i> Deserialize<'de> for PseudoClass<'i>
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>,
source§impl<'i> Hash for PseudoClass<'i>
impl<'i> Hash for PseudoClass<'i>
source§impl<'any, 'i> IntoOwned<'any> for PseudoClass<'i>
impl<'any, 'i> IntoOwned<'any> for PseudoClass<'i>
source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Consumes the value and returns an owned clone.
§type Owned = PseudoClass<'any>
type Owned = PseudoClass<'any>
Self
with a new lifetime.source§impl<'i> JsonSchema for PseudoClass<'i>
impl<'i> JsonSchema for PseudoClass<'i>
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl<'i> NonTSPseudoClass<'i> for PseudoClass<'i>
impl<'i> NonTSPseudoClass<'i> for PseudoClass<'i>
source§fn is_active_or_hover(&self) -> bool
fn is_active_or_hover(&self) -> bool
source§fn is_user_action_state(&self) -> bool
fn is_user_action_state(&self) -> bool
fn is_valid_before_webkit_scrollbar(&self) -> bool
fn is_valid_after_webkit_scrollbar(&self) -> bool
fn visit<V>(&self, _visitor: &mut V) -> boolwhere
V: SelectorVisitor<'i, Impl = Self::Impl>,
source§impl<'i> PartialEq for PseudoClass<'i>
impl<'i> PartialEq for PseudoClass<'i>
source§fn eq(&self, other: &PseudoClass<'i>) -> bool
fn eq(&self, other: &PseudoClass<'i>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<'i> Serialize for PseudoClass<'i>
impl<'i> Serialize for PseudoClass<'i>
source§impl<'i> ToCss for PseudoClass<'i>
impl<'i> ToCss for PseudoClass<'i>
impl<'i> Eq for PseudoClass<'i>
impl<'i> StructuralPartialEq for PseudoClass<'i>
Auto Trait Implementations§
impl<'i> Freeze for PseudoClass<'i>
impl<'i> RefUnwindSafe for PseudoClass<'i>
impl<'i> Send for PseudoClass<'i>
impl<'i> Sync for PseudoClass<'i>
impl<'i> Unpin for PseudoClass<'i>
impl<'i> UnwindSafe for PseudoClass<'i>
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
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> CallHasher for T
impl<T> CallHasher for T
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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
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>
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>
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 more