Skip to main content

RefundWeight

Trait 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RefundWeight for ()

Source§

fn refund(&mut self, _weight: Weight)

Implementors§