pub struct CssRule {
pub selector: String,
pub properties: Vec<CssProperty>,
pub media_query: Option<String>,
pub specificity: u32,
}Expand description
Represents a CSS rule with selector and properties
Fields§
§selector: StringCSS selector (e.g., “.p-4”, “.md:bg-blue-500”)
properties: Vec<CssProperty>CSS properties for this rule
media_query: Option<String>Media query for responsive rules
specificity: u32CSS specificity score
Trait Implementations§
impl StructuralPartialEq for CssRule
Auto Trait Implementations§
impl Freeze for CssRule
impl RefUnwindSafe for CssRule
impl Send for CssRule
impl Sync for CssRule
impl Unpin for CssRule
impl UnwindSafe for CssRule
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