referrerpolicy=no-referrer-when-downgrade

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn set_foo_benchmark() -> Weight;
    fn set_foo_using_authorize() -> Weight;
    fn authorize_set_foo_using_authorize() -> Weight;
}
Expand description

Weight functions needed for pallet_template.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl WeightInfo for ()

Source§

fn set_foo_benchmark() -> Weight

Storage: Kitchensink OtherFoo (r:0 w:1) Proof Skipped: Kitchensink OtherFoo (max_values: Some(1), max_size: None, mode: Measured)

Source§

fn set_foo_using_authorize() -> Weight

Source§

fn authorize_set_foo_using_authorize() -> Weight

Implementors§

Source§

impl<T: Config> WeightInfo for SubstrateWeight<T>