SearchSort
A Rust trait implementing a Binary Search and the Quick Sort algorithm. Currently, they are implemented for
Vec<T>
types but can be expanded to other collection types.
Usage
cargo add searchsort
Examples
use SearchSort;
let arr = vec!;
let find = 5;
assert_eq!;
let mut arr = vec!;
arr.quicksort;
assert_eq!;
Why
This was my first time implementing the Binary Search and Quick Sort algorithms. I have a feeling this may not be the last time.