Struct move_core_types::gas_schedule::CostTable
source · 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§
source§impl<'de> Deserialize<'de> for CostTable
impl<'de> Deserialize<'de> for CostTable
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