Struct css::domain::StyleRule
[−]
[src]
pub struct StyleRule { pub selectors: DeduplicatedSelectors, pub property_declarations: PropertyDeclarations<Importance>, }
A style rule, with selectors and declarations.
Fields
selectors: DeduplicatedSelectors
The list of selectors in this rule.
property_declarations: PropertyDeclarations<Importance>
The declaration block with the properties it contains.
Trait Implementations
impl Debug for StyleRule
[src]
impl Clone for StyleRule
[src]
fn clone(&self) -> StyleRule
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl ToCss for StyleRule
[src]
fn to_css<W: Write>(&self, dest: &mut W) -> Result
[src]
fn to_css_string(&self) -> String
[src]
Serialize self
in CSS syntax and return a string. Read more
impl HasPropertyDeclarations<Importance> for StyleRule
[src]
fn property_declarations(&self) -> &PropertyDeclarations<Importance>
[src]
fn property_declarations_mut(&mut self) -> &mut PropertyDeclarations<Importance>
[src]
fn property_declarations_slice(&self) -> &[PropertyDeclaration<Importance>]
[src]
fn property_declarations_vec(&self) -> &Vec<PropertyDeclaration<Importance>>
[src]
fn property_declarations_vec_mut(
&mut self
) -> &mut Vec<PropertyDeclaration<Importance>>
[src]
&mut self
) -> &mut Vec<PropertyDeclaration<Importance>>