referrerpolicy=no-referrer-when-downgrade
pallet_example_basic::weights

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn set_dummy_benchmark() -> Weight;
    fn accumulate_dummy() -> Weight;
    fn sort_vector(x: u32) -> Weight;
}
Expand description

Weight functions needed for pallet_example_basic.

Required Methods§

Source

fn set_dummy_benchmark() -> Weight

Source

fn accumulate_dummy() -> Weight

Source

fn sort_vector(x: u32) -> Weight

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 sort_vector(x: u32) -> Weight

The range of component x is [0, 10000].

Source§

fn set_dummy_benchmark() -> Weight

Source§

fn accumulate_dummy() -> Weight

Implementors§

Source§

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