Struct outmove_common::types::gas_schedule::CostTable[][src]

pub struct CostTable {
    pub instruction_table: Vec<GasCost>,
    pub native_table: Vec<GasCost>,
    pub gas_constants: GasConstants,
}

The cost tables, keyed by the serialized form of the bytecode instruction. We use the serialized form as opposed to the instruction enum itself as the key since this will be the on-chain representation of bytecode instructions in the future.

Fields

instruction_table: Vec<GasCost>native_table: Vec<GasCost>gas_constants: GasConstants

Implementations

impl CostTable[src]

pub fn instruction_cost(&self, instr_index: u8) -> &GasCost[src]

pub fn native_cost(&self, native_index: u8) -> &GasCost[src]

Trait Implementations

impl Clone for CostTable[src]

impl Debug for CostTable[src]

impl<'de> Deserialize<'de> for CostTable[src]

impl PartialEq<CostTable> for CostTable[src]

impl Serialize for CostTable[src]

impl StructuralPartialEq for CostTable[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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 = 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<V, T> VZip<V> for T where
    V: MultiLane<T>,