Trait afsort::AFSortable
[−]
[src]
pub trait AFSortable { fn af_sort_unstable(&mut self); }
Enhances slices of e.g. Strings to have a af_sort_unstable
method, as a more idiomatic
way to call sort.
Example
use afsort::AFSortable; let mut strings = vec!["c", "a", "b"]; strings.af_sort_unstable(); assert_eq!(strings, vec!["a", "b", "c"]);
Required Methods
fn af_sort_unstable(&mut self)
Implementations on Foreign Types
impl<T> AFSortable for [T] where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,