pub struct LocalState { /* private fields */ }

Implementations

Get the number of slots available in this state

Get the type of the local slot at index

Check whether the local slot at index holds a value

Get the value held in local slot index. Panics if the slot does not hold a value

Put the value held in local slot index. Override if the slot already holds a value

Put the value held in local slot index. Panics if the slot already holds a value

Delete the value held in local slot index. Panics if the slot does not hold a value

Save a mutable argument that is destroyed

Load a mutable argument that is destroyed

Mark a mutable reference is uninitialized explicitly

Unset the mark that the mutable reference is uninitialized, return True if unset

Get the current PC location (i.e., which bytecode to be executed)

Set the PC location to jump to on next execution

Decide the PC location for next bytecode instruction

Collect the pointers of the underlying values in the local slots

source

pub fn transit_to_post_abort(&mut self, info: AbortInfo)

Mark that an abort is raised and we will be executing the abort action next

Check whether execution of the current function is finished or not

source

pub fn is_post_abort(&self) -> bool

Check whether we are executing in a post-abort status

Mark that the current function terminated with an abort

Mark that the current function terminated with return values

Consume and reduce the state into termination status

Mark the spec checking disabled for the rest of the function

Check whether we are skipping the specs

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.

Should always be Self

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.