pub struct Runtime<'env> { /* private fields */ }
Expand description

A stackless bytecode runtime in charge of pre- and post-execution checking, conversion, and monitoring. The main, step-by-step interpretation loop is delegated to the Player instance.

Implementations

Construct a runtime with all information pre-loaded.

Execute a function (identified by fun_id) with given type arguments, arguments, and a mutable reference of the global state. Returns the result of the execution. Any updates to the global states is recorded in the mutable reference.

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.