pub struct VariantCombination {
pub variants: Vec<ParsedVariant>,
pub base_class: String,
pub selector: String,
pub media_query: Option<String>,
pub specificity: u32,
pub is_valid: bool,
pub errors: Vec<String>,
}Expand description
Re-export core tailwind-rs functionality Parsed variant combination
Fields§
§variants: Vec<ParsedVariant>All variants in the combination
base_class: StringBase class name
selector: StringGenerated CSS selector
media_query: Option<String>Media query (if any)
specificity: u32Total specificity
is_valid: boolWhether this combination is valid
errors: Vec<String>Validation errors
Trait Implementations§
Source§impl Clone for VariantCombination
impl Clone for VariantCombination
Source§fn clone(&self) -> VariantCombination
fn clone(&self) -> VariantCombination
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 VariantCombination
impl Debug for VariantCombination
Source§impl<'de> Deserialize<'de> for VariantCombination
impl<'de> Deserialize<'de> for VariantCombination
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantCombination, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantCombination, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VariantCombination
impl PartialEq for VariantCombination
Source§impl Serialize for VariantCombination
impl Serialize for VariantCombination
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 StructuralPartialEq for VariantCombination
Auto Trait Implementations§
impl Freeze for VariantCombination
impl RefUnwindSafe for VariantCombination
impl Send for VariantCombination
impl Sync for VariantCombination
impl Unpin for VariantCombination
impl UnwindSafe for VariantCombination
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