Trait style::shared_lock::ToCssWithGuard
[−]
[src]
pub trait ToCssWithGuard { fn to_css<W>(&self, guard: &SharedRwLockReadGuard, dest: &mut W) -> Result
where
W: Write; fn to_css_string(&self, guard: &SharedRwLockReadGuard) -> String { ... } }
Like ToCss, but with a lock guard given by the caller.
Required Methods
fn to_css<W>(&self, guard: &SharedRwLockReadGuard, dest: &mut W) -> Result where
W: Write,
W: Write,
Serialize self
in CSS syntax, writing to dest
, using the given lock guard.
Provided Methods
fn to_css_string(&self, guard: &SharedRwLockReadGuard) -> String
Serialize self
in CSS syntax using the given lock guard and return a string.
(This is a convenience wrapper for to_css
and probably should not be overridden.)
Implementors
impl ToCssWithGuard for CounterStyleRuleData
impl ToCssWithGuard for FontFaceRuleData
impl ToCssWithGuard for DocumentRule
impl ToCssWithGuard for FontFeatureValuesRule
impl ToCssWithGuard for ImportRule
impl ToCssWithGuard for KeyframesRule
impl ToCssWithGuard for Keyframe
impl ToCssWithGuard for MediaRule
impl ToCssWithGuard for NamespaceRule
impl ToCssWithGuard for PageRule
impl ToCssWithGuard for StyleRule
impl ToCssWithGuard for SupportsRule
impl ToCssWithGuard for ViewportRule
impl ToCssWithGuard for CssRule