Trait OpGasCost

Source
pub trait OpGasCost: Send + Sync {
    // Required method
    fn op_gas_cost(&self, op: &Op) -> Gas;
}
Expand description

A mapping from an operation to its gas cost.

Required Methods§

Source

fn op_gas_cost(&self, op: &Op) -> Gas

The gas cost associated with the given op.

Implementors§

Source§

impl<F> OpGasCost for F
where F: Fn(&Op) -> Gas + Send + Sync,