Skip to main content

ToCss

Trait ToCss 

Source
pub trait ToCss {
    // Required method
    fn to_css(&self, buf: &mut String);

    // Provided method
    fn to_css_string(&self) -> String { ... }
}
Expand description

Trait for converting IR style values back to CSS strings.

Required Methods§

Source

fn to_css(&self, buf: &mut String)

Write this value as CSS to the buffer.

Provided Methods§

Source

fn to_css_string(&self) -> String

Convert to a CSS string (convenience method).

Implementors§