Trait SorterExt

Source
pub trait SorterExt<'a>: Sorter<'a> {
    // Provided methods
    fn to_if<Cusion, F, TransF>(
        self,
        f: F,
        transformer: TransF,
    ) -> impl Sorter<'a, Context = Cusion>
       where Self: Sized,
             Cusion: Sync + Send + 'a,
             F: Fn(&Cusion) -> bool + Send + 'a,
             TransF: Fn(&Cusion) -> <Self as Sorter<'a>>::Context + Send + 'a,
             <Self as Sorter<'a>>::Context: Sync { ... }
    fn reverse(self) -> impl Sorter<'a, Context = <Self as Sorter<'a>>::Context>
       where Self: Sized,
             <Self as Sorter<'a>>::Context: Sync { ... }
}

Provided Methods§

Source

fn to_if<Cusion, F, TransF>( self, f: F, transformer: TransF, ) -> impl Sorter<'a, Context = Cusion>
where Self: Sized, Cusion: Sync + Send + 'a, F: Fn(&Cusion) -> bool + Send + 'a, TransF: Fn(&Cusion) -> <Self as Sorter<'a>>::Context + Send + 'a, <Self as Sorter<'a>>::Context: Sync,

Source

fn reverse(self) -> impl Sorter<'a, Context = <Self as Sorter<'a>>::Context>
where Self: Sized, <Self as Sorter<'a>>::Context: Sync,

Implementors§

Source§

impl<'a, T> SorterExt<'a> for T
where T: Sorter<'a>,