pub enum Signal {
Break,
Continue,
Return,
}Expand description
Flow control signal returned by exec_stmts.
Used to propagate break, continue, and return through nested block calls.
Loop implementations catch Break/Continue; function call implementation catches Return.
Uncaught signals at the top level are reported as errors.
Variants§
Break
break — exit the innermost enclosing loop immediately.
Continue
continue — skip the rest of the current iteration and advance to the next.
Return
return inside a named function — carries no value (outputs are read from env).
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnsafeUnpin for Signal
impl UnwindSafe for Signal
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