Enum magnus::error::Tag

source ·
#[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§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.