Skip to main content

SolutionAggregate

Trait SolutionAggregate 

Source
pub trait SolutionAggregate: Aggregate {
    // Required method
    fn contributes_to_solution(value: &Self, total: &Self) -> bool;
}
Expand description

Aggregate value whose optimum identifies contributing solutions.

Required Methods§

Source

fn contributes_to_solution(value: &Self, total: &Self) -> bool

Whether a solution-level value contributes to the final aggregate value.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§