Struct rusk_vm::GasMeter[][src]

pub struct GasMeter { /* fields omitted */ }
Expand description

Struct to keep track of gas usage

Implementations

Creates a new GasMeter with given gas limits

Deduct specified amount of gas from the meter

Returns how much gas left from the initial budget.

Returns how much gas was spent.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Return a reference to the key of the leaf type

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.