Struct criterion::Fun
[−]
[src]
pub struct Fun<I: Debug> { /* fields omitted */ }
Representing a function to benchmark together with a name of that function.
Used together with bench_functions
to represent one out of multiple functions
under benchmark.
Methods
impl<I> Fun<I> where
I: Debug + 'static,
[src]
I: Debug + 'static,
pub fn new<F>(name: &str, f: F) -> Fun<I> where
F: FnMut(&mut Bencher, &I) + 'static,
[src]
F: FnMut(&mut Bencher, &I) + 'static,
Create a new Fun
given a name and a closure