Trait Bounded

Source
pub trait Bounded {
    const BOUNDS: (f64, f64);

    // Provided method
    fn in_bounds(x: Vec<f64>) -> bool { ... }
}
Expand description

This is a trait that ensures consistent implementation of bounded benchmark functions

Required Associated Constants§

Source

const BOUNDS: (f64, f64)

The bounds of the canonical optimization problem

Provided Methods§

Source

fn in_bounds(x: Vec<f64>) -> bool

Function to check bounds

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.

Implementors§