pub enum VariantType {
State,
Responsive,
DarkMode,
Group,
Peer,
PseudoElement,
Container,
Layer,
Custom,
}Expand description
Re-export core tailwind-rs functionality Variant type classification
Variants§
State
State variants (hover, focus, etc.)
Responsive
Responsive variants (sm, md, lg, etc.)
DarkMode
Dark mode variants
Group
Group variants (group-hover, group-focus, etc.)
Peer
Peer variants (peer-hover, peer-focus, etc.)
PseudoElement
Pseudo-element variants (before, after, etc.)
Container
Container query variants
Layer
Cascade layer variants
Custom
Custom variants
Trait Implementations§
Source§impl Clone for VariantType
impl Clone for VariantType
Source§fn clone(&self) -> VariantType
fn clone(&self) -> VariantType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VariantType
impl Debug for VariantType
Source§impl<'de> Deserialize<'de> for VariantType
impl<'de> Deserialize<'de> for VariantType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for VariantType
impl Hash for VariantType
Source§impl PartialEq for VariantType
impl PartialEq for VariantType
Source§impl Serialize for VariantType
impl Serialize for VariantType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for VariantType
impl StructuralPartialEq for VariantType
Auto Trait Implementations§
impl Freeze for VariantType
impl RefUnwindSafe for VariantType
impl Send for VariantType
impl Sync for VariantType
impl Unpin for VariantType
impl UnwindSafe for VariantType
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
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
Compare self to
key and return true if they are equal.