Skip to main content

InterpreterTypes

Trait InterpreterTypes 

pub trait InterpreterTypes {
    type Stack: StackTr;
    type Memory: MemoryTr;
    type Bytecode: Jumps + Immediates + LoopControl + LegacyBytecode;
    type ReturnData: ReturnData;
    type Input: InputsTr;
    type RuntimeFlag: RuntimeFlag;
    type Extend;
    type Output;
}
Expand description

Trait defining the component types used by an interpreter implementation.

Required Associated Types§

type Stack: StackTr

Stack implementation type.

type Memory: MemoryTr

Memory implementation type.

type Bytecode: Jumps + Immediates + LoopControl + LegacyBytecode

Bytecode implementation type.

type ReturnData: ReturnData

Return data implementation type.

type Input: InputsTr

Input data implementation type.

type RuntimeFlag: RuntimeFlag

Runtime flags implementation type.

type Extend

Extended functionality type.

type Output

Output type for execution results.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§