Trait ScoreSortedDescending

Source
pub trait ScoreSortedDescending {
    // Required method
    fn _score<S: ScoreAccumulator>(
        &self,
        labels_with_weights: impl Iterator<Item = (S, (bool, S))> + Clone,
    ) -> S;

    // Provided method
    fn score<S, P, B, W>(
        &self,
        labels_with_weights: impl Iterator<Item = (P, (B, W))> + Clone,
    ) -> S
       where S: ScoreAccumulator,
             P: IntoScore<S>,
             B: BinaryLabel,
             W: IntoScore<S> { ... }
}

Required Methods§

Source

fn _score<S: ScoreAccumulator>( &self, labels_with_weights: impl Iterator<Item = (S, (bool, S))> + Clone, ) -> S

Provided Methods§

Source

fn score<S, P, B, W>( &self, labels_with_weights: impl Iterator<Item = (P, (B, W))> + Clone, ) -> S
where S: ScoreAccumulator, P: IntoScore<S>, B: BinaryLabel, W: IntoScore<S>,

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§