pub struct Config {
pub keep_class_names: bool,
pub safari_10: bool,
pub top_level_mark: Mark,
pub ignore_eval: bool,
pub preserved_symbols: HashSet<Atom, BuildHasherDefault<FxHasher>>,
}
Fields§
§keep_class_names: bool
If true, the hygiene
pass will preserve class names.
safari_10: bool
👎Deprecated: This field is no longer required to work around bugs in Safari 10.
If true, the bug of safari 10 is avoided.
top_level_mark: Mark
The marks derived from this marks will treated as specified by user
and other marks will be treated as generated by swc
.
ignore_eval: bool
Mangle even if vars are visible to eval
or with
.
preserved_symbols: HashSet<Atom, BuildHasherDefault<FxHasher>>
Used for preventing mangler from renaming variables to reserved names.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more