| Crates.io | quick_sort_yq |
| lib.rs | quick_sort_yq |
| version | 0.1.5 |
| created_at | 2025-10-28 04:07:26.171684+00 |
| updated_at | 2025-10-28 07:32:22.806078+00 |
| description | A sample quick sort algorithm |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1904114 |
| size | 2,258 |
A simple, generic implementation of the quick sort algorithm in Rust.
Add the following to your Cargo.toml:
[dependencies]
quick_sort_yq = "0.1.5"
Replace the version with the latest published version if needed.
use quick_sort_yq::quick_sort;
fn main() {
let mut arr = [3, 6, 8, 10, 1, 2, 1, 80];
println!("Before: {:?}", arr);
quick_sort(&mut arr);
println!("After: {:?}", arr);
}
Ord.MIT