pub trait SortByIteratorExt: Iterator {
    // Provided methods
    fn sort_by<'a, F, V>(self, f: F) -> SortBy<'a, Self> 
       where V: PartialOrd,
             F: Fn(&Self::Item) -> V + 'a,
             Self: Sized { ... }
    fn sort_by_desc<'a, F, V>(self, f: F) -> SortBy<'a, Self> 
       where V: PartialOrd,
             F: Fn(&Self::Item) -> V + 'a,
             Self: Sized { ... }
}

Provided Methods§

source

fn sort_by<'a, F, V>(self, f: F) -> SortBy<'a, Self> where V: PartialOrd, F: Fn(&Self::Item) -> V + 'a, Self: Sized,

source

fn sort_by_desc<'a, F, V>(self, f: F) -> SortBy<'a, Self> where V: PartialOrd, F: Fn(&Self::Item) -> V + 'a, Self: Sized,

Implementors§

source§

impl<T> SortByIteratorExt for Twhere T: Iterator + ?Sized,