pub trait ParamRange {
    // Required methods
    fn start(&self) -> u32;
    fn end(&self) -> u32;
}
Expand description

Trait that must be implemented by all structs that can be used as parameter range types in the new benchmarking code (i.e. Linear<0, 1_000>). Right now there is just Linear but this could later be extended to support additional non-linear parameter ranges.

See v2 for more info.

Required Methods§

source

fn start(&self) -> u32

Represents the (inclusive) starting number of this ParamRange.

source

fn end(&self) -> u32

Represents the (inclusive) ending number of this ParamRange.

Implementors§

source§

impl<const A: u32, const B: u32> ParamRange for Linear<A, B>