[−][src]Struct html5minify::Minifier
Minifier implementation for io::Write
.
Implementations
impl<'a, W> Minifier<'a, W> where
W: Write,
[src]
W: Write,
pub fn new(w: &'a mut W) -> Self
[src]
Creates a new Minifier
instance.
pub fn collapse_whitespace(&mut self, collapse: bool) -> &mut Self
[src]
Collapse whitespace between elements and in text when whitespace isn't preserved by default. Enabled by default.
pub fn omit_doctype(&mut self, omit: bool) -> &mut Self
[src]
Omit writing the HTML5 doctype. Disabled by default.
pub fn preserve_comments(&mut self, preserve: bool) -> &mut Self
[src]
Preserve HTML comments. Disabled by default.
pub fn minify<R: Read>(&mut self, r: &mut R) -> Result<()>
[src]
Auto Trait Implementations
impl<'a, W> RefUnwindSafe for Minifier<'a, W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<'a, W> Send for Minifier<'a, W> where
W: Send,
W: Send,
impl<'a, W> Sync for Minifier<'a, W> where
W: Sync,
W: Sync,
impl<'a, W> Unpin for Minifier<'a, W>
impl<'a, W> !UnwindSafe for Minifier<'a, W>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,