pub enum InstOp {
Lt,
Le,
Gt,
Ge,
Eq,
Neq,
As,
Is,
IsNot,
And,
Or,
}
Expand description
An operation between two values on the machine.
Variants§
Lt
Compare two values on the stack for lt and push the result as a boolean on the stack.
Le
Compare two values on the stack for lte and push the result as a boolean on the stack.
Gt
Compare two values on the stack for gt and push the result as a boolean on the stack.
Ge
Compare two values on the stack for gte and push the result as a boolean on the stack.
Eq
Compare two values on the stack for equality and push the result as a boolean on the stack.
§Operation
<b>
<a>
=> <bool>
Neq
Compare two values on the stack for inequality and push the result as a boolean on the stack.
§Operation
<b>
<a>
=> <bool>
As
Is
Test if the top of the stack is an instance of the second item on the stack.
§Operation
<type>
<value>
=> <boolean>
IsNot
Test if the top of the stack is not an instance of the second item on the stack.
§Operation
<type>
<value>
=> <boolean>
And
Pop two values from the stack and test if they are both boolean true.
§Operation
<boolean>
<boolean>
=> <boolean>
Or
Pop two values from the stack and test if either of them are boolean true.
§Operation
<boolean>
<boolean>
=> <boolean>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InstOp
impl<'de> Deserialize<'de> for InstOp
Source§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>,
impl Copy for InstOp
Auto Trait Implementations§
impl Freeze for InstOp
impl RefUnwindSafe for InstOp
impl Send for InstOp
impl Sync for InstOp
impl Unpin for InstOp
impl UnwindSafe for InstOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)