Struct stack_vm::InstructionTable [] [src]

pub struct InstructionTable<T: Debug>(_);

The instruction table.

Implemented as a HashMap behind the scenes.

Methods

impl<T: Debug> InstructionTable<T>
[src]

[src]

Create a new empty instruction table.

[src]

Retrieve an instruction by looking up it's op code.

[src]

Retrieve an instruction by looking up it's name.

[src]

Insert an instruction into the table.

[src]

Returns true if the instruction table is empty.

[src]

Returns a list of symbols for use in the Code struct.

Generates a vector of tuples containing the op code and the name of each instruction.

Trait Implementations

impl<T: Debug + Debug> Debug for InstructionTable<T>
[src]

[src]

Formats the value using the given formatter.