pub enum Opcode {
Show 78 variants
Add,
Sub,
Mul,
Div,
Sdiv,
Mod,
Smod,
Addmod,
Mulmod,
Exp,
SignExtend,
Lt,
Gt,
Slt,
Sgt,
Eq,
IsZero,
And,
Or,
Xor,
Not,
Byte,
Shl,
Shr,
Sar,
Keccak256,
Pop,
Mload,
Mstore,
Mstore8,
Sload,
Sstore,
Msize,
Pc,
Gas,
Jump,
Jumpi,
Jumpdest,
Return,
Revert,
Selfdestruct,
Call,
Callcode,
Delegatecall,
Staticcall,
Create,
Create2,
Calldataload,
Calldatasize,
Calldatacopy,
Codesize,
Codecopy,
Extcodesize,
Extcodecopy,
Extcodehash,
Returndatasize,
Returndatacopy,
Address,
Balance,
Origin,
Caller,
Callvalue,
Gasprice,
Blockcoinhash,
Coinbase,
Timestamp,
Number,
Difficulty,
Gaslimit,
Chainid,
Selfbalance,
Push(u8),
Dup(u8),
Swap(u8),
Log(u8),
Nop,
Invalid,
Unknown(u8),
}Expand description
EVM opcode enumeration.
Variants§
Add
Sub
Mul
Div
Sdiv
Mod
Smod
Addmod
Mulmod
Exp
SignExtend
Lt
Gt
Slt
Sgt
Eq
IsZero
And
Or
Xor
Not
Byte
Shl
Shr
Sar
Keccak256
Pop
Mload
Mstore
Mstore8
Sload
Sstore
Msize
Pc
Gas
Jump
Jumpi
Jumpdest
Return
Revert
Selfdestruct
Call
Callcode
Delegatecall
Staticcall
Create
Create2
Calldataload
Calldatasize
Calldatacopy
Codesize
Codecopy
Extcodesize
Extcodecopy
Extcodehash
Returndatasize
Returndatacopy
Address
Balance
Origin
Caller
Callvalue
Gasprice
Blockcoinhash
Coinbase
Timestamp
Number
Difficulty
Gaslimit
Chainid
Selfbalance
Push(u8)
Dup(u8)
Swap(u8)
Log(u8)
Nop
Invalid
Unknown(u8)
Implementations§
Trait Implementations§
impl Copy for Opcode
Source§impl<'de> Deserialize<'de> for Opcode
impl<'de> Deserialize<'de> for Opcode
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnsafeUnpin for Opcode
impl UnwindSafe for Opcode
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.