pub struct MinifyOptions {
pub keep_comments: bool,
}Fields§
§keep_comments: boolState 3 — @minify-keep-comments. When true the minifier strips
whitespace as usual but preserves comments, converting // line
comments to /* */ block form (and recording a B0703 warning per
conversion). When false (default), comments are dropped entirely.
Trait Implementations§
Source§impl Clone for MinifyOptions
impl Clone for MinifyOptions
Source§fn clone(&self) -> MinifyOptions
fn clone(&self) -> MinifyOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MinifyOptions
impl Debug for MinifyOptions
Source§impl Default for MinifyOptions
impl Default for MinifyOptions
Source§fn default() -> MinifyOptions
fn default() -> MinifyOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MinifyOptions
impl RefUnwindSafe for MinifyOptions
impl Send for MinifyOptions
impl Sync for MinifyOptions
impl Unpin for MinifyOptions
impl UnsafeUnpin for MinifyOptions
impl UnwindSafe for MinifyOptions
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