[][src]Trait cssparser::ToCss

pub trait ToCss {
    fn to_css<W>(&self, dest: &mut W) -> Result
    where
        W: Write
; fn to_css_string(&self) -> String { ... } }

Trait for things the can serialize themselves in CSS syntax.

Required methods

fn to_css<W>(&self, dest: &mut W) -> Result where
    W: Write

Serialize self in CSS syntax, writing to dest.

Loading content...

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.)

Loading content...

Implementations on Foreign Types

impl<'a> ToCss for i8[src]

impl<'a> ToCss for u8[src]

impl<'a> ToCss for i16[src]

impl<'a> ToCss for u16[src]

impl<'a> ToCss for i32[src]

impl<'a> ToCss for u32[src]

impl<'a> ToCss for i64[src]

impl<'a> ToCss for u64[src]

impl<'a> ToCss for f32[src]

impl<'a> ToCss for f64[src]

Loading content...

Implementors

impl ToCss for Color[src]

impl ToCss for RGBA[src]

impl ToCss for UnicodeRange[src]

impl<'a> ToCss for Token<'a>[src]

Loading content...