pub enum Control<B> {
Continue,
Break(B),
}
Expand description
Control flow for callbacks.
Break
can carry a value.
Variants§
Implementations§
Trait Implementations§
source§impl<B> ControlFlow for Control<B>
impl<B> ControlFlow for Control<B>
fn continuing() -> Self
fn should_break(&self) -> bool
impl<B: Copy> Copy 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