Crate partial_sort

source ·
Expand description

partial_sort

Build Status

partial_sort is Rust version of std::partial_sort

[dependencies]
partial_sort = "0.1.2"

Example


let mut vec = vec![4, 4, 3, 3, 1, 1, 2, 2];
vec.partial_sort(4, |a, b| a.cmp(b));
println!("{:?}", vec);

Traits

Functions