pub trait IsSortedBy<T> {
    // Required method
    fn is_sorted_by<F>(self, cmp: F) -> bool
       where F: FnMut(&T, &T) -> Ordering;
}
Expand description

Helper trait until is_sorted_by is stabilized. TODO: https://github.com/rust-lang/rust/issues/53485

Required Methods§

source

fn is_sorted_by<F>(self, cmp: F) -> boolwhere F: FnMut(&T, &T) -> Ordering,

Implementors§

source§

impl<'x, T, X> IsSortedBy<T> for Xwhere X: 'x + IntoIterator<Item = &'x T>, T: 'x,