[−][src]Trait cssparser::ToCss
Trait for things the can serialize themselves in CSS syntax.
Required methods
fn to_css<W>(&self, dest: &mut W) -> Result where
W: Write,
W: Write,
Serialize self
in CSS syntax, writing to dest
.
Provided methods
fn to_css_string(&self) -> String
Serialize self
in CSS syntax and return a string.
(This is a convenience wrapper for to_css
and probably should not be overridden.)