pub struct StyleRule {
pub selectors: DeduplicatedSelectors,
pub property_declarations: PropertyDeclarations<Importance>,
}Expand description
A style rule, with selectors and declarations.
Fields§
§selectors: DeduplicatedSelectorsThe list of selectors in this rule.
property_declarations: PropertyDeclarations<Importance>The declaration block with the properties it contains.
Trait Implementations§
Source§impl HasPropertyDeclarations<Importance> for StyleRule
impl HasPropertyDeclarations<Importance> for StyleRule
fn property_declarations(&self) -> &PropertyDeclarations<Importance>
fn property_declarations_mut(&mut self) -> &mut PropertyDeclarations<Importance>
fn property_declarations_slice(&self) -> &[PropertyDeclaration<Importance>]
fn property_declarations_vec(&self) -> &Vec<PropertyDeclaration<Importance>>
fn property_declarations_vec_mut( &mut self, ) -> &mut Vec<PropertyDeclaration<Importance>>
Auto Trait Implementations§
impl Freeze for StyleRule
impl RefUnwindSafe for StyleRule
impl Send for StyleRule
impl Sync for StyleRule
impl Unpin for StyleRule
impl UnsafeUnpin for StyleRule
impl UnwindSafe for StyleRule
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