1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
/*! It is a library that provides various sorting functions. ## install If cargo-edit is installed, you can install it like this: ``` cargo add buldak ``` If not, you have to manually add the dependency to Cargo.toml. ``` [dependencies] buldak = "*" ``` ## use If you have performed the installation process well, you can sort by passing the values in an array format as follows. ``` use buldak::*; fn main() { let mut nums = [6, 34, 3, 1, 2]; bubble::sort(&mut nums); println!("{:?}", nums); } ``` ## features - bubble sort - counting sort - ... more later ## link - [document](https://docs.rs/buldak) - [repository](https://github.com/myyrakle/buldak) */ #[path = "lib/bubble.rs"] pub mod bubble; #[path = "lib/selection.rs"] pub mod selection; #[path = "lib/counting.rs"] pub mod counting;