pub enum ControlFlow {
Break,
Continue,
Return(Value),
Err(Error),
}Expand description
An enum carrying control flow information.
Returned by compute functions which can impact control flow.
Variants§
Implementations§
Source§impl ControlFlow
impl ControlFlow
Sourcepub fn is_ignorable(&self) -> bool
pub fn is_ignorable(&self) -> bool
Returns true if this represents a data-shape error that can safely
be treated as Value::None (e.g., type mismatches, coercion failures).
Returns false for system errors (storage, timeout, permissions), control flow signals (Break/Continue), and Return values.
Trait Implementations§
Source§impl Debug for ControlFlow
impl Debug for ControlFlow
Source§impl Display for ControlFlow
impl Display for ControlFlow
Source§impl From<Error> for ControlFlow
impl From<Error> for ControlFlow
Source§impl From<Error> for ControlFlow
impl From<Error> for ControlFlow
Source§fn from(error: Error) -> Self
fn from(error: Error) -> Self
Boxes the value-algebra failure directly, so it stays the concrete type
in the anyhow slot and ControlFlow::is_ignorable keeps matching it.
Auto Trait Implementations§
impl !Freeze for ControlFlow
impl !RefUnwindSafe for ControlFlow
impl !UnwindSafe for ControlFlow
impl Send for ControlFlow
impl Sync for ControlFlow
impl Unpin for ControlFlow
impl UnsafeUnpin for ControlFlow
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