Struct html_minifier::HTMLMinifier [−][src]
pub struct HTMLMinifier { /* fields omitted */ }
This struct helps you generate and minify your HTML code in the same time.
Methods
impl HTMLMinifier
[src]
impl HTMLMinifier
pub fn new() -> HTMLMinifier
[src]
pub fn new() -> HTMLMinifier
Create a new HTMLMinifier instance.
pub fn digest(&mut self, text: &str) -> Result<(), &'static str>
[src]
pub fn digest(&mut self, text: &str) -> Result<(), &'static str>
Input some text to generate HTML code. You don't need to input a full HTML text at once.
pub fn get_html(self) -> String
[src]
pub fn get_html(self) -> String
Finalize and generate HTML code into a string instance.
pub fn minify(html: &str) -> Result<String, &'static str>
[src]
pub fn minify(html: &str) -> Result<String, &'static str>
Minify HTML.
Auto Trait Implementations
impl Send for HTMLMinifier
impl Send for HTMLMinifier
impl Sync for HTMLMinifier
impl Sync for HTMLMinifier