Struct style::stylesheets::StyleRule
[−]
[src]
pub struct StyleRule {
pub selectors: SelectorList<SelectorImpl>,
pub block: Arc<Locked<PropertyDeclarationBlock>>,
pub source_location: SourceLocation,
}A style rule, with selectors and declarations.
Fields
selectors: SelectorList<SelectorImpl>
The list of selectors in this rule.
block: Arc<Locked<PropertyDeclarationBlock>>
The declaration block with the properties it contains.
source_location: SourceLocation
The location in the sheet where it was found.
Trait Implementations
impl Debug for StyleRule[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl DeepCloneWithLock for StyleRule[src]
fn deep_clone_with_lock(
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
_params: &DeepCloneParams
) -> StyleRule[src]
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
_params: &DeepCloneParams
) -> StyleRule
Deep clones this StyleRule.
impl ToCssWithGuard for StyleRule[src]
fn to_css<W>(&self, guard: &SharedRwLockReadGuard, dest: &mut W) -> Result where
W: Write, [src]
W: Write,
https://drafts.csswg.org/cssom/#serialize-a-css-rule CSSStyleRule
fn to_css_string(&self, guard: &SharedRwLockReadGuard) -> String[src]
Serialize self in CSS syntax using the given lock guard and return a string. Read more