pub struct Minifier<'a, W: Write> { /* private fields */ }
Expand description
Minifier implementation for io::Write
.
Implementations§
Source§impl<'a, W> Minifier<'a, W>where
W: Write,
impl<'a, W> Minifier<'a, W>where
W: Write,
Sourcepub fn collapse_whitespace(&mut self, collapse: bool) -> &mut Self
pub fn collapse_whitespace(&mut self, collapse: bool) -> &mut Self
Collapse whitespace between elements and in text when whitespace isn’t preserved by default. Enabled by default.
Sourcepub fn omit_doctype(&mut self, omit: bool) -> &mut Self
pub fn omit_doctype(&mut self, omit: bool) -> &mut Self
Omit writing the HTML5 doctype. Disabled by default.
Sourcepub fn preserve_comments(&mut self, preserve: bool) -> &mut Self
pub fn preserve_comments(&mut self, preserve: bool) -> &mut Self
Preserve HTML comments. Disabled by default.
Auto Trait Implementations§
impl<'a, W> Freeze for Minifier<'a, W>
impl<'a, W> RefUnwindSafe for Minifier<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for Minifier<'a, W>where
W: Send,
impl<'a, W> Sync for Minifier<'a, W>where
W: Sync,
impl<'a, W> Unpin for Minifier<'a, W>
impl<'a, W> !UnwindSafe for Minifier<'a, W>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more