Skip to main content

RowWeight

Trait RowWeight 

Source
pub trait RowWeight<S: 'static, O: Operator<S>, Sc>: Send + Sync {
    // Required method
    fn score(&self, solution: &S, row: &O::View<'_>) -> Sc;
}
Expand description

Unsigned score of one row of operator O; the terminal applies the impact.

Required Methods§

Source

fn score(&self, solution: &S, row: &O::View<'_>) -> Sc

Scores row.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§