PartialSort

Trait PartialSort 

Source
pub trait PartialSort {
    type Item;

    // Required method
    fn partial_sort<F>(&mut self, _: usize, _: F)
       where F: FnMut(&Self::Item, &Self::Item) -> Ordering;
}

Required Associated Types§

Required Methods§

Source

fn partial_sort<F>(&mut self, _: usize, _: F)
where F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> PartialSort for [T]

Source§

type Item = T

Source§

fn partial_sort<F>(&mut self, last: usize, cmp: F)
where F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Implementors§