Enum runestick::InstOp [−][src]
pub enum InstOp {}Show 20 variants
Add, Sub, Mul, Div, Rem, BitAnd, BitXor, BitOr, Shl, Shr, Lt, Gt, Lte, Gte, Eq, Neq, Is, IsNot, And, Or,
Expand description
An operation between two values on the machine.
Variants
The add operation. a + b
.
The sub operation. a - b
.
The multiply operation. a * b
.
The division operation. a / b
.
The remainder operation. a % b
.
The bitwise and operation. a & b
.
The bitwise xor operation. a ^ b
.
The bitwise or operation. a | b
.
The shift left operation. a << b
.
The shift right operation. a << b
.
Compare two values on the stack for lt and push the result as a boolean on the stack.
Compare two values on the stack for gt and push the result as a boolean on the stack.
Compare two values on the stack for lte and push the result as a boolean on the stack.
Compare two values on the stack for gte and push the result as a boolean on the stack.
Compare two values on the stack for equality and push the result as a boolean on the stack.
Operation
<b> <a> => <bool>
Compare two values on the stack for inequality and push the result as a boolean on the stack.
Operation
<b> <a> => <bool>
Test if the top of the stack is an instance of the second item on the stack.
Operation
<type> <value> => <boolean>
Test if the top of the stack is not an instance of the second item on the stack.
Operation
<type> <value> => <boolean>
Pop two values from the stack and test if they are both boolean true.
Operation
<boolean> <boolean> => <boolean>
Pop two values from the stack and test if either of them are boolean true.
Operation
<boolean> <boolean> => <boolean>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for InstOp
impl UnwindSafe for InstOp
Blanket Implementations
Mutably borrows from an owned value. Read more