Skip to main content

FormatAsCssValue

Trait FormatAsCssValue 

Source
pub trait FormatAsCssValue {
    // Required method
    fn format_as_css_value(&self, f: &mut Formatter<'_>) -> Result;
}
Expand description

Zero-allocation CSS value formatting trait using fmt::Formatter.

Unlike PrintAsCssValue (which returns a String), this trait writes directly into a formatter and is suitable for Display impl delegation.

Required Methods§

Source

fn format_as_css_value(&self, f: &mut Formatter<'_>) -> Result

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§