Enum move_vm_types::gas::SimpleInstruction
source · [−]pub enum SimpleInstruction {
Show 39 variants
Nop,
Ret,
BrTrue,
BrFalse,
Branch,
Pop,
LdU8,
LdU64,
LdU128,
LdTrue,
LdFalse,
FreezeRef,
MutBorrowLoc,
ImmBorrowLoc,
ImmBorrowField,
MutBorrowField,
ImmBorrowFieldGeneric,
MutBorrowFieldGeneric,
CastU8,
CastU64,
CastU128,
Add,
Sub,
Mul,
Mod,
Div,
BitOr,
BitAnd,
Xor,
Shl,
Shr,
Or,
And,
Not,
Lt,
Gt,
Le,
Ge,
Abort,
}Expand description
Enum of instructions that do not need extra information for gas metering.
Variants
Nop
Ret
BrTrue
BrFalse
Branch
Pop
LdU8
LdU64
LdU128
LdTrue
LdFalse
FreezeRef
MutBorrowLoc
ImmBorrowLoc
ImmBorrowField
MutBorrowField
ImmBorrowFieldGeneric
MutBorrowFieldGeneric
CastU8
CastU64
CastU128
Add
Sub
Mul
Mod
Div
BitOr
BitAnd
Xor
Shl
Shr
Or
And
Not
Lt
Gt
Le
Ge
Abort
Trait Implementations
sourceimpl Clone for SimpleInstruction
impl Clone for SimpleInstruction
sourcefn clone(&self) -> SimpleInstruction
fn clone(&self) -> SimpleInstruction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SimpleInstruction
impl Debug for SimpleInstruction
sourceimpl Hash for SimpleInstruction
impl Hash for SimpleInstruction
sourceimpl PartialEq<SimpleInstruction> for SimpleInstruction
impl PartialEq<SimpleInstruction> for SimpleInstruction
sourcefn eq(&self, other: &SimpleInstruction) -> bool
fn eq(&self, other: &SimpleInstruction) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Copy for SimpleInstruction
impl Eq for SimpleInstruction
impl StructuralEq for SimpleInstruction
impl StructuralPartialEq for SimpleInstruction
Auto Trait Implementations
impl RefUnwindSafe for SimpleInstruction
impl Send for SimpleInstruction
impl Sync for SimpleInstruction
impl Unpin for SimpleInstruction
impl UnwindSafe for SimpleInstruction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more