Struct move_core_types::gas_schedule::CostTable [−][src]
pub struct CostTable {
pub instruction_table: Vec<GasCost>,
pub native_table: Vec<GasCost>,
pub gas_constants: GasConstants,
}
Expand description
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
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for CostTable
impl UnwindSafe for CostTable
Blanket Implementations
Mutably borrows from an owned value. Read more