Struct swc_common::pass::Optional
source · [−]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
sourceimpl<V> PartialEq<Optional<V>> for Optional<V>where
V: PartialEq<V>,
impl<V> PartialEq<Optional<V>> for Optional<V>where
V: PartialEq<V>,
impl<V> Copy for Optional<V>where
V: Copy,
impl<V> Eq for Optional<V>where
V: Eq,
impl<V> StructuralEq for Optional<V>
impl<V> StructuralPartialEq for Optional<V>
Auto Trait Implementations
impl<V> RefUnwindSafe for Optional<V>where
V: RefUnwindSafe,
impl<V> Send for Optional<V>where
V: Send,
impl<V> Sync for Optional<V>where
V: Sync,
impl<V> Unpin for Optional<V>where
V: Unpin,
impl<V> UnwindSafe for Optional<V>where
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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