pub enum Instruction {
Show 14 variants HALT, SET, UNSET, ALLOCATE, DEALLOCATE, AND, OR, XOR, NOT, LSHIFT, RSHIFT, JUMP, JUMPIF, ILLEGAL,
}

Variants

HALT

Stop executing bytecode

SET

Set the bit(s) at the given address(es) to 1

UNSET

Set the bit(s) at the given address(es) to 0

ALLOCATE

Grow the virtual memory by (n) bits

DEALLOCATE

Shrink the virtual memory by (n) bits

AND

Perform a bitwise AND operation on two bits or two ranges

OR

Perform a bitwise OR operation on two bits or two ranges

XOR

Perform a bitwise exclusive OR operation on two bits or two ranges

NOT

Perform a bitwise negation on two bits or two ranges

LSHIFT

Perform an arithmetic left shift on two given ranges

RSHIFT

Perform an arithmetic right shift on two given ranges

JUMP

Set the instruction pointer to the given value

JUMPIF

Set the instruction pointer to a value if the bit at a given address is set

ILLEGAL

Invalid instruction

Trait Implementations

Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts this type into the (usually inferred) input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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.

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.