Trot
Trait library for chaining of vector operations, and for comparison for sorting.
Example usage:
Sorting a vector:
let vec = vec!.sort_vec;
println!; // [0, 1, 1, 2, 2, 3]
Deduping a vector:
let vec = vec!.dedup_vec;
println!; // [2, 1, 0, 3]
Has more functions for sorting and deduping at the same time, and extending a vector, both returning self, like the two above examples.
Comparing within a tuple:
let mut list = vec!;
list.sort_by;
println!; // [(1, 3), (2, 2), (3, 1)]