[−][src]Function rendy_util::is_slice_sorted_by_key
pub fn is_slice_sorted_by_key<'a, T, K: Ord>(
slice: &'a [T],
f: impl Fn(&'a T) -> K
) -> bool
Check if slice is sorted using ordered key and key extractor
pub fn is_slice_sorted_by_key<'a, T, K: Ord>(
slice: &'a [T],
f: impl Fn(&'a T) -> K
) -> bool
Check if slice is sorted using ordered key and key extractor