#[repr(i32)]
pub enum Tag {
Return,
Break,
Next,
Retry,
Redo,
Raise,
Throw,
Fatal,
}
Expand description
The state of a call to Ruby exiting early, interrupting the normal flow of code.
Variants
Return
Early return from a block.
Break
Break from a block.
Next
Early return from a block, continuing to next block call.
Retry
Break from a block after an error, block will be subsequently re-run.
Redo
Break from a block that will be subsequently re-run.
Raise
Ruby stack unwound with an error.
Throw
Ruby stack unwound as flow control.
Fatal
Block or method exiting early due to unrecoverable error.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more