[][src]Enum rsevmasm::instructions::Instruction

pub enum Instruction {
    Stop,
    Add,
    Mul,
    Sub,
    Div,
    SDiv,
    Mod,
    SMod,
    AddMod,
    MulMod,
    Exp,
    SignExtend,
    Lt,
    Gt,
    SLt,
    SGt,
    EQ,
    IsZero,
    And,
    Or,
    Xor,
    Not,
    Byte,
    Shl,
    Shr,
    Sar,
    Sha3,
    Addr,
    Balance,
    Origin,
    Caller,
    CallValue,
    CallDataLoad,
    CallDataSize,
    CallDataCopy,
    CodeSize,
    CodeCopy,
    GasPrice,
    ExtCodeSize,
    ExtCodeCopy,
    ReturnDataSize,
    ReturnDataCopy,
    ExtCodeHash,
    Blockhash,
    Coinbase,
    Timestamp,
    Number,
    Difficulty,
    GasLimit,
    Pop,
    MLoad,
    MStore,
    MStore8,
    SLoad,
    SStore,
    Jump,
    JumpIf,
    PC,
    MSize,
    Gas,
    JumpDest,
    Push(Vec<u8>),
    Dup(usize),
    Swap(usize),
    Log(usize),
    Create,
    Call,
    CallCode,
    Return,
    DelegateCall,
    Create2,
    Revert,
    StaticCall,
    Invalid,
    SelfDestruct,
}

Variants

Stop
Add
Mul
Sub
Div
SDiv
Mod
SMod
AddMod
MulMod
Exp
SignExtend
Lt
Gt
SLt
SGt
EQ
IsZero
And
Or
Xor
Not
Byte
Shl
Shr
Sar
Sha3
Addr
Balance
Origin
Caller
CallValue
CallDataLoad
CallDataSize
CallDataCopy
CodeSize
CodeCopy
GasPrice
ExtCodeSize
ExtCodeCopy
ReturnDataSize
ReturnDataCopy
ExtCodeHash
Blockhash
Coinbase
Timestamp
Number
Difficulty
GasLimit
Pop
MLoad
MStore
MStore8
SLoad
SStore
Jump
JumpIf
PC
MSize
Gas
JumpDest
Push(Vec<u8>)
Dup(usize)
Swap(usize)
Log(usize)
Create
Call
CallCode
Return
DelegateCall
Create2
Revert
StaticCall
Invalid
SelfDestruct

Methods

impl Instruction[src]

pub fn size(&self) -> usize[src]

pub fn writes_to_memory(&self) -> bool[src]

pub fn reads_from_memory(&self) -> bool[src]

pub fn writes_to_storage(&self) -> bool[src]

pub fn reads_from_storage(&self) -> bool[src]

pub fn halts_execution(&self) -> bool[src]

pub fn ends_basic_block(&self) -> bool[src]

pub fn pops(&self) -> usize[src]

pub fn push(&self) -> usize[src]

Trait Implementations

impl Clone for Instruction[src]

impl Eq for Instruction[src]

impl PartialEq<Instruction> for Instruction[src]

impl Debug for Instruction[src]

impl StructuralPartialEq for Instruction[src]

impl StructuralEq for Instruction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]