The world's best and finest sorting algorithms, implemented in Rust
This crate only implements the most useless or inefficient sorting algorithms. You may use them in your production application, altough I would strongly advise against that. Currently, the following sorting algorithms are implemented:
If you feel like this list misses some fancy algorithm (which it surely does!), you can implement it and open a PR or open an issue. :)
Implementation & Usage
All algorithms are currently implemented as traits for any Vec<T>
where T
fulfills the trait PartialOrd
.
So in order to use these sorting alrogithms, you can just invoke them on the object of interest:
extern crate sorting;
use *;
let unsorted = vec!;
unsorted.panicsort; // will panic
Using the respective traits you can always implement these methods for your own structures.
License
This work is licensed under the Mozilla Public License 2.0.