pub trait Bench {
// Required method
fn run(&mut self) -> BenchmarkResult;
}Expand description
A trait for any object that can run a benchmark and produce a result.
Required Methods§
Sourcefn run(&mut self) -> BenchmarkResult
fn run(&mut self) -> BenchmarkResult
Run the benchmark and return its result.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".