pub trait Function {
const BOUNDS: (f64, f64);
const MINIMUM: f64;
// Required methods
fn f(x: Vec<f64>) -> f64;
fn minimizer(n: usize) -> Vec<f64>;
}
Expand description
This is a trait that ensures consistent implementation of different benchmark functions
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.