Skip to main content

FuzzySort

Trait FuzzySort 

Source
pub trait FuzzySort<'a> {
    // Required methods
    fn score(&self, a: &'a str) -> u32;
    fn sort<T: Sortable + 'static>(&self) -> impl FnMut(&T, &T) -> Ordering;
}

Required Methods§

Source

fn score(&self, a: &'a str) -> u32

Source

fn sort<T: Sortable + 'static>(&self) -> impl FnMut(&T, &T) -> Ordering

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§