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

Trait WeightInfo

Source
pub trait WeightInfo {
    // Required methods
    fn do_something() -> Weight;
    fn cause_error() -> Weight;
}
Expand description

Weight functions needed for pallet_template.

Required Methods§

Source

fn do_something() -> Weight

Source

fn cause_error() -> 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 do_something() -> Weight

Storage: TemplatePallet Something (r:0 w:1) Proof: TemplatePallet Something (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Source§

fn cause_error() -> Weight

Storage: TemplatePallet Something (r:1 w:1) Proof: TemplatePallet Something (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)

Implementors§

Source§

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