pub struct Rule {
pub selectors: Vec<Selector>,
pub style: ComputedStyle,
pub source_order: usize,
}Expand description
A parsed CSS rule: one or more selectors paired with a declarations block.
Fields§
§selectors: Vec<Selector>The selectors that trigger this rule.
style: ComputedStyleThe computed style declared in the rule block.
source_order: usizeInsertion index within the stylesheet; used to break specificity ties.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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