ScorerExt

Trait ScorerExt 

Source
pub trait ScorerExt:
    Scorer
    + Sized
    + Send {
    // Provided methods
    fn into_sorter(self) -> impl Sorter<Context = Self::Context> { ... }
    fn into_filter<F>(
        self,
        predicate: F,
    ) -> impl Filter<Context = Self::Context>
       where F: Fn(u32) -> bool + Send { ... }
}

Provided Methods§

Source

fn into_sorter(self) -> impl Sorter<Context = Self::Context>

Source

fn into_filter<F>(self, predicate: F) -> impl Filter<Context = Self::Context>
where F: Fn(u32) -> bool + Send,

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§

Source§

impl<T> ScorerExt for T
where T: Scorer + Sized + Send,