[][src]Enum evm_gasometer::GasCost

pub enum GasCost {
    Zero,
    Base,
    VeryLow,
    Low,
    Mid,
    High,
    Invalid,
    ExtCodeSize,
    Balance,
    BlockHash,
    ExtCodeHash,
    Call {
        value: U256,
        gas: U256,
        target_exists: bool,
    },
    CallCode {
        value: U256,
        gas: U256,
        target_exists: bool,
    },
    DelegateCall {
        gas: U256,
        target_exists: bool,
    },
    StaticCall {
        gas: U256,
        target_exists: bool,
    },
    Suicide {
        value: U256,
        target_exists: bool,
        already_removed: bool,
    },
    SStore {
        original: H256,
        current: H256,
        new: H256,
    },
    Sha3 {
        len: U256,
    },
    Log {
        n: u8,
        len: U256,
    },
    ExtCodeCopy {
        len: U256,
    },
    VeryLowCopy {
        len: U256,
    },
    Exp {
        power: U256,
    },
    Create,
    Create2 {
        len: U256,
    },
    JumpDest,
    SLoad,
}

Variants

Zero
Base
VeryLow
Low
Mid
High
Invalid
ExtCodeSize
Balance
BlockHash
ExtCodeHash
Call

Fields of Call

value: U256gas: U256target_exists: bool
CallCode

Fields of CallCode

value: U256gas: U256target_exists: bool
DelegateCall

Fields of DelegateCall

gas: U256target_exists: bool
StaticCall

Fields of StaticCall

gas: U256target_exists: bool
Suicide

Fields of Suicide

value: U256target_exists: boolalready_removed: bool
SStore

Fields of SStore

original: H256current: H256new: H256
Sha3

Fields of Sha3

len: U256
Log

Fields of Log

n: u8len: U256
ExtCodeCopy

Fields of ExtCodeCopy

len: U256
VeryLowCopy

Fields of VeryLowCopy

len: U256
Exp

Fields of Exp

power: U256
Create
Create2

Fields of Create2

len: U256
JumpDest
SLoad

Trait Implementations

impl Clone for GasCost[src]

impl Debug for GasCost[src]

Auto Trait Implementations

impl Send for GasCost

impl Sync for GasCost

impl Unpin for GasCost

impl UnwindSafe for GasCost

impl RefUnwindSafe for GasCost

Blanket Implementations

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

impl<T> From<T> for 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 = Infallible

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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self