/// Run a benchmark with an environment, specifying the run time limit. The function to bench takes a mutable reference
/// to the `env` parameter instead of a struct.
///
/// See [bench_env](fn.bench_env.html)
Run a benchmark with an environment, specifying the run time limit. The function to bench takes a mutable reference
to the `env` parameter instead of a struct.


Run a benchmark with an environment specifying the run time limit . The function to bench takes a mutable reference to the ` env ` parameter instead of a struct .
pub fn bench_env_limit_ref<F, I, O>(time_limit_secs: f64, env: I, f: F) -> Stats where F: Fn(&mut I) -> O, I: Clone {
    run_bench(time_limit_secs, env,
        |mut xs| {
            for i in xs.iter_mut() {
                pretend_to_use(f(i));             // Run the code and pretend to use the output
            }
        }
    )
}
pub fn bench_env_limit_ref < F , I , O > ( time_limit_secs : f64 , env : I , f : F ) -> Stats where F : Fn ( & mut I ) -> O , I : Clone { run_bench ( time_limit_secs , env , | mut xs | { for i in xs . iter_mut ( ) { pretend_to_use ( f ( i ) ) ; // Run the code and pretend to use the output } } ) }
Run a benchmark with an environment, specifying the run time limit.
Run a benchmark with an environment specifying the run time limit .
time_limit_secs
f64
env
I
f
F