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> PartialEq<Optional<V>> for Optional<V>
impl<V: PartialEq> PartialEq<Optional<V>> for Optional<V>
impl<V: Copy> Copy for Optional<V>
impl<V: Eq> Eq for Optional<V>
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