Enum cavalier_contours::core::Control
source · pub enum Control<B = ()> {
Continue,
Break(B),
}
Expand description
Basic control flow enum that can be used when visiting query results.
Variants§
Continue
Indicates to the query function to continue visiting results.
Break(B)
Indicates to the query function to stop visiting results and return a value.
Trait Implementations§
source§impl<B> ControlFlow for Control<B>
impl<B> ControlFlow for Control<B>
source§fn continuing() -> Self
fn continuing() -> Self
Constructs state indicating to continue.
source§fn should_break(&self) -> bool
fn should_break(&self) -> bool
Should return true if control flow should break.
Auto Trait Implementations§
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