pub struct Minifier<'a, W: Write> { /* private fields */ }
Expand description

Minifier implementation for io::Write.

Implementations

Creates a new Minifier instance.

Collapse whitespace between elements and in text when whitespace isn’t preserved by default. Enabled by default.

Omit writing the HTML5 doctype. Disabled by default.

Preserve HTML comments. Disabled by default.

Minifies the given reader input.

Errors

Will return Err if unable to write to the output writer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.