Trait AFSortable

Source
pub trait AFSortable {
    // Required method
    fn af_sort_unstable(&mut self);
}
Expand description

Enhances slices of DigitAt implementors to have a af_sort_unstable method.

#Example

use afsort::AFSortable;

let mut strings = vec!["c", "a", "b"];
strings.af_sort_unstable();
assert_eq!(strings, vec!["a", "b", "c"]);

Required Methods§

Implementations on Foreign Types§

Source§

impl<T> AFSortable for [T]
where T: DigitAt + Ord,

Implementors§