pub trait GetWorstCase<Context = ()> {
    type Output;

    // Required method
    fn worst_case(context: Context) -> Self::Output;
}
Expand description

Trait that allows types to implement a worst case value for a type, only when running benchmarks.

Required Associated Types§

Required Methods§

source

fn worst_case(context: Context) -> Self::Output

Implementations on Foreign Types§

source§

impl<T> GetWorstCase<T> for bool

§

type Output = bool

source§

fn worst_case(_context: T) -> Self::Output

source§

impl<T> GetWorstCase<T> for u32

§

type Output = u32

source§

fn worst_case(_context: T) -> Self::Output

source§

impl<T> GetWorstCase<T> for ()

§

type Output = ()

source§

fn worst_case(_context: T) -> Self::Output

Implementors§