Function dmsort::sort
[−]
[src]
pub fn sort<T: Ord>(slice: &mut [T])
Sorts the elements using the Ord trait.
Examples
let mut numbers : Vec<i32> = vec!(0, 1, 6, 7, 2, 3, 4, 5); dmsort::sort(&mut numbers); assert_eq!(numbers, vec!(0, 1, 2, 3, 4, 5, 6, 7));