Trait essential_check::state_read_vm::OpGasCost

source ·
pub trait OpGasCost {
    // Required method
    fn op_gas_cost(&self, op: &StateRead) -> u64;
}
Expand description

A mapping from an operation to its gas cost.

Required Methods§

source

fn op_gas_cost(&self, op: &StateRead) -> u64

The gas cost associated with the given op.

Implementors§

source§

impl<F> OpGasCost for F
where F: Fn(&StateRead) -> u64,