Skip to main content

IntoCssStr

Trait IntoCssStr 

pub trait IntoCssStr: 'static {
    // Required method
    fn get_style(&self) -> Result<String, Error>;
}
Expand description

Helper trait for getting CSS from a string or path.

Required Methods§

fn get_style(&self) -> Result<String, Error>

Returns a string containing CSS.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

§

impl IntoCssStr for &'static str

§

impl IntoCssStr for Path

§

impl IntoCssStr for PathBuf

Implementors§