Struct lightningcss::printer::PseudoClasses
source · pub struct PseudoClasses<'a> {
pub hover: Option<&'a str>,
pub active: Option<&'a str>,
pub focus: Option<&'a str>,
pub focus_visible: Option<&'a str>,
pub focus_within: Option<&'a str>,
}
Expand description
A mapping of user action pseudo classes to replace with class names.
See PrinterOptions.
Fields§
§hover: Option<&'a str>
The class name to replace :hover
with.
active: Option<&'a str>
The class name to replace :active
with.
focus: Option<&'a str>
The class name to replace :focus
with.
focus_visible: Option<&'a str>
The class name to replace :focus-visible
with.
focus_within: Option<&'a str>
The class name to replace :focus-within
with.
Trait Implementations§
source§impl<'a> Debug for PseudoClasses<'a>
impl<'a> Debug for PseudoClasses<'a>
source§impl<'a> Default for PseudoClasses<'a>
impl<'a> Default for PseudoClasses<'a>
source§fn default() -> PseudoClasses<'a>
fn default() -> PseudoClasses<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PseudoClasses<'a>
impl<'a> Send for PseudoClasses<'a>
impl<'a> Sync for PseudoClasses<'a>
impl<'a> Unpin for PseudoClasses<'a>
impl<'a> UnwindSafe for PseudoClasses<'a>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer