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) -> bool
where F: FnMut(&T, &T) -> Ordering,

Object Safety§

This trait is not object safe.

Implementors§

source§

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