| Crates.io | sorting-algorithm |
| lib.rs | sorting-algorithm |
| version | 0.1.17 |
| created_at | 2025-07-19 02:08:29.194206+00 |
| updated_at | 2026-01-01 18:16:01.572183+00 |
| description | An implementation of various sorting algorithms |
| homepage | |
| repository | https://github.com/FLogan800/sorting-algorithm |
| max_upload_size | |
| id | 1759873 |
| size | 27,821 |
various sorting algorithms implemented in Rust
The current implemented sorting algorithms are:
The use for each algorithm is the same.
sort() functionuse sorting_algorithm::bubble_sort;
fn main() {
let &mut data = [3, 1, 2, 5, 4];
bubble_sort::sort(&mut data);
assert_eq!(data, [1, 2, 3, 4, 5]);
}