Struct style::stylesheets::CssRules
[−]
[src]
pub struct CssRules(pub Vec<CssRule>);
A list of CSS rules.
Methods
impl CssRules
[src]
impl CssRules
[src]
pub fn new(
rules: Vec<CssRule>,
shared_lock: &SharedRwLock
) -> Arc<Locked<CssRules>>
[src]
rules: Vec<CssRule>,
shared_lock: &SharedRwLock
) -> Arc<Locked<CssRules>>
Trivially construct a new set of CSS rules.
pub fn remove_rule(&mut self, index: usize) -> Result<(), RulesMutateError>
[src]
pub fn to_css_block<W>(
&self,
guard: &SharedRwLockReadGuard,
dest: &mut W
) -> Result where
W: Write,
[src]
&self,
guard: &SharedRwLockReadGuard,
dest: &mut W
) -> Result where
W: Write,
Serializes this CSSRules to CSS text as a block of rules.
This should be speced into CSSOM spec at some point. See https://github.com/w3c/csswg-drafts/issues/1985
Trait Implementations
impl Debug for CssRules
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl DeepCloneWithLock for CssRules
[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.