benchplot

Type Alias BenchFn

Source
pub type BenchFn<T, R> = Box<dyn Fn(T) -> R + Send + Sync>;
Expand description

Type alias for a function to benchmark that takes an argument of type T and returns a result of type R.

Aliased Typeยง

struct BenchFn<T, R>(/* private fields */);