Trait Minify

Source
pub trait Minify {
    // Required method
    fn minify(&self) -> Result<Vec<u8>, Error>;
}
Expand description

Defines the minify trait.

Required Methods§

Source

fn minify(&self) -> Result<Vec<u8>, Error>

Minifies the source returning the minified HTML5.

§Errors

Will return Err if unable to read from the input reader or unable to write to the output writer.

Implementors§

Source§

impl<T> Minify for T
where T: AsRef<[u8]>,