pub struct CvaDuplicateVariantBlock {
pub value: String,
pub occurrence_count: u32,
pub occurrences: Vec<CssBlockOccurrence>,
pub actions: Vec<CssCandidateAction>,
}Expand description
A duplicated CVA / shadcn variant class block.
Fields§
§value: StringNormalized class block shared by several variant values.
occurrence_count: u32Number of variant values with this class block.
occurrences: Vec<CssBlockOccurrence>First locations of the duplicate values, sorted by path and line.
actions: Vec<CssCandidateAction>Read-only guidance step(s), so consumers can iterate actions
uniformly across every candidate type.
Trait Implementations§
Source§impl Clone for CvaDuplicateVariantBlock
impl Clone for CvaDuplicateVariantBlock
Source§impl Debug for CvaDuplicateVariantBlock
impl Debug for CvaDuplicateVariantBlock
Source§impl<'de> Deserialize<'de> for CvaDuplicateVariantBlock
impl<'de> Deserialize<'de> for CvaDuplicateVariantBlock
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CvaDuplicateVariantBlock
impl RefUnwindSafe for CvaDuplicateVariantBlock
impl Send for CvaDuplicateVariantBlock
impl Sync for CvaDuplicateVariantBlock
impl Unpin for CvaDuplicateVariantBlock
impl UnsafeUnpin for CvaDuplicateVariantBlock
impl UnwindSafe for CvaDuplicateVariantBlock
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