Struct swc_common::pass::Optional [−][src]
pub struct Optional<V> {
pub enabled: bool,
pub visitor: V,
}
Expand description
A visitor which visits node only if enabled
is true.
Fields
enabled: bool
visitor: V
Implementations
Trait Implementations
Auto Trait Implementations
impl<V> RefUnwindSafe for Optional<V> where
V: RefUnwindSafe,
impl<V> UnwindSafe for Optional<V> where
V: UnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more