Skip to main content

StepOutcome

Enum StepOutcome 

Source
pub enum StepOutcome<F, R, A, Y, I> {
    Continue(CodeCursor),
    Call(F),
    Return(R),
    Raise(A),
    Yield(Y),
    Interrupt(I),
}
Expand description

The explicit result of executing exactly one decoded instruction.

Variants§

§

Continue(CodeCursor)

Continue in the current frame at the supplied validated cursor.

§

Call(F)

Push a new guest frame. This is data interpreted by the loop, not a Rust call.

§

Return(R)

Pop the current guest frame and carry consumer-defined return data.

§

Raise(A)

Stop with a consumer-defined abrupt outcome.

§

Yield(Y)

Cooperatively yield consumer-defined state.

§

Interrupt(I)

Stop for a consumer-defined interrupt.

Auto Trait Implementations§

§

impl<F, R, A, Y, I> Freeze for StepOutcome<F, R, A, Y, I>
where F: Freeze, R: Freeze, A: Freeze, Y: Freeze, I: Freeze,

§

impl<F, R, A, Y, I> RefUnwindSafe for StepOutcome<F, R, A, Y, I>

§

impl<F, R, A, Y, I> Send for StepOutcome<F, R, A, Y, I>
where F: Send, R: Send, A: Send, Y: Send, I: Send,

§

impl<F, R, A, Y, I> Sync for StepOutcome<F, R, A, Y, I>
where F: Sync, R: Sync, A: Sync, Y: Sync, I: Sync,

§

impl<F, R, A, Y, I> Unpin for StepOutcome<F, R, A, Y, I>
where F: Unpin, R: Unpin, A: Unpin, Y: Unpin, I: Unpin,

§

impl<F, R, A, Y, I> UnsafeUnpin for StepOutcome<F, R, A, Y, I>

§

impl<F, R, A, Y, I> UnwindSafe for StepOutcome<F, R, A, Y, I>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.