Struct style::stylesheets::PageRule
[−]
[src]
pub struct PageRule { pub block: Arc<Locked<PropertyDeclarationBlock>>, pub source_location: SourceLocation, }
A @page
rule.
This implements only a limited subset of the CSS 2.2 syntax.
In this subset, page selectors are not implemented.
Fields
block: Arc<Locked<PropertyDeclarationBlock>>
The declaration block this page rule contains.
source_location: SourceLocation
The source position this rule was found at.
Trait Implementations
impl Debug for PageRule
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl ToCssWithGuard for PageRule
[src]
fn to_css<W>(&self, guard: &SharedRwLockReadGuard, dest: &mut W) -> Result where
W: Write,
[src]
W: Write,
Serialization of PageRule is not specced, adapted from steps for StyleRule.
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
impl DeepCloneWithLock for PageRule
[src]
fn deep_clone_with_lock(
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
_params: &DeepCloneParams
) -> Self
[src]
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
_params: &DeepCloneParams
) -> Self
Deep clones this object.