Struct html_minifier::HTMLMinifierHelper
source · [−]pub struct HTMLMinifierHelper {
pub remove_comments: bool,
pub minify_code: bool,
/* private fields */
}
Expand description
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
sourceimpl HTMLMinifierHelper
impl HTMLMinifierHelper
Trait Implementations
sourceimpl Clone for HTMLMinifierHelper
impl Clone for HTMLMinifierHelper
sourcefn clone(&self) -> HTMLMinifierHelper
fn clone(&self) -> HTMLMinifierHelper
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HTMLMinifierHelper
impl Debug for HTMLMinifierHelper
Auto Trait Implementations
impl RefUnwindSafe for HTMLMinifierHelper
impl Send for HTMLMinifierHelper
impl Sync for HTMLMinifierHelper
impl Unpin for HTMLMinifierHelper
impl UnwindSafe for HTMLMinifierHelper
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more