pub enum Control<B = ()> {
Continue,
Break(B),
Prune,
}Expand description
Control flow for algorithm visitors.
Returned by visitor callbacks to control traversal behavior.
Variants§
Continue
Continue the algorithm normally.
Break(B)
Stop the algorithm and return the break value.
Prune
Skip the current subtree (for traversals) but continue the algorithm.
Implementations§
Trait Implementations§
impl<B: Copy> Copy for Control<B>
impl<B: Eq> Eq for Control<B>
impl<B> StructuralPartialEq for Control<B>
Auto Trait Implementations§
impl<B> Freeze for Control<B>where
B: Freeze,
impl<B> RefUnwindSafe for Control<B>where
B: RefUnwindSafe,
impl<B> Send for Control<B>where
B: Send,
impl<B> Sync for Control<B>where
B: Sync,
impl<B> Unpin for Control<B>where
B: Unpin,
impl<B> UnwindSafe for Control<B>where
B: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.