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§
fn set_dummy_benchmark() -> Weight
fn accumulate_dummy() -> Weight
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 ()
impl WeightInfo for ()
Source§fn sort_vector(x: u32) -> Weight
fn sort_vector(x: u32) -> Weight
The range of component x
is [0, 10000]
.