Enum runestick::InstOp [−][src]
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
impl Clone for InstOp
[src]
impl Copy for InstOp
[src]
impl Debug for InstOp
[src]
impl<'de> Deserialize<'de> for InstOp
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for InstOp
[src]
impl Serialize for InstOp
[src]
Auto Trait Implementations
impl RefUnwindSafe for InstOp
impl Send for InstOp
impl Sync for InstOp
impl Unpin for InstOp
impl UnwindSafe for InstOp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,