referrerpolicy=no-referrer-when-downgrade

Trait sp_runtime::traits::RefundWeight

source ·
pub trait RefundWeight {
    // Required method
    fn refund(&mut self, weight: Weight);
}
Expand description

A type that can handle weight refunds.

Required Methods§

source

fn refund(&mut self, weight: Weight)

Refund some unspent weight.

Implementations on Foreign Types§

source§

impl RefundWeight for ()

source§

fn refund(&mut self, _weight: Weight)

Implementors§