[][src]Struct html_minifier::HTMLMinifierHelper

pub struct HTMLMinifierHelper {
    pub remove_comments: bool,
    pub minify_code: bool,
    // some fields omitted
}

This struct helps you generate and minify your HTML code in the same time. The output destination is outside this struct.

Fields

remove_comments: bool

Remove HTML comments.

minify_code: bool

Minify the content in the code element.

Implementations

impl HTMLMinifierHelper[src]

pub fn new() -> Self[src]

Returns the "default value" for a type.

impl HTMLMinifierHelper[src]

pub fn reset(&mut self)[src]

Reset this html minifier helper. The option settings and allocated memory will be be preserved.

pub fn digest<S: AsRef<str>, W: HTMLWriter>(
    &mut self,
    text: S,
    out: &mut W
) -> Result<(), HTMLMinifierError>
[src]

Input some text to generate HTML code. It is not necessary to input a full HTML text at once.

Trait Implementations

impl Clone for HTMLMinifierHelper[src]

impl Debug for HTMLMinifierHelper[src]

impl Default for HTMLMinifierHelper[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.