Trait sorted::Sortable
[−]
[src]
pub trait Sortable: Collection { fn sort<F>(&mut self, f: F)
where
F: FnMut(&Self::Item, &Self::Item) -> Ordering; }
Implements an interface for collections that can be sorted.
A collection that implements this trait must be able to re-order its elements in a specific order (sorting).
Required Methods
Implementors
impl<'a, T> Sortable for &'a mut [T]
impl<T> Sortable for [T; 1]
impl<T> Sortable for [T; 2]
impl<T> Sortable for [T; 3]
impl<T> Sortable for [T; 4]
impl<T> Sortable for [T; 5]
impl<T> Sortable for [T; 6]
impl<T> Sortable for [T; 7]
impl<T> Sortable for [T; 8]
impl<T> Sortable for [T; 9]
impl<T> Sortable for [T; 10]
impl<T> Sortable for [T; 11]
impl<T> Sortable for [T; 12]
impl<T> Sortable for [T; 13]
impl<T> Sortable for [T; 14]
impl<T> Sortable for [T; 15]
impl<T> Sortable for [T; 16]
impl<T> Sortable for [T; 17]
impl<T> Sortable for [T; 18]
impl<T> Sortable for [T; 19]
impl<T> Sortable for [T; 20]
impl<T> Sortable for [T; 21]
impl<T> Sortable for [T; 22]
impl<T> Sortable for [T; 23]
impl<T> Sortable for [T; 24]
impl<T> Sortable for [T; 25]
impl<T> Sortable for [T; 26]
impl<T> Sortable for [T; 27]
impl<T> Sortable for [T; 28]
impl<T> Sortable for [T; 29]
impl<T> Sortable for [T; 30]
impl<T> Sortable for [T; 31]
impl<T> Sortable for [T; 32]
impl<T> Sortable for Vec<T>