Skip to main content

Dominates

Trait Dominates 

Source
pub trait Dominates {
    // Required method
    fn dominates(&self, other: &Self) -> bool;
}
Expand description

Pareto dominance between cost vectors.

Required Methods§

Source

fn dominates(&self, other: &Self) -> bool

Returns true if self is no worse than other in every objective and strictly better in at least one.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<C: Cost, const N: usize> Dominates for [C; N]

Source§

fn dominates(&self, other: &Self) -> bool

Implementors§