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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
/*! 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 - smart bubble sort - cocktail shaker sort - selection sort - double selection sort - insertion sort - stooge sort - quick sort - merge sort - heap sort - counting sort - bogo sort - ... more later ## link - [document](https://docs.rs/buldak) - [repository](https://github.com/myyrakle/buldak) */ #[path = "lib/bubble.rs"] pub mod bubble; #[path = "lib/smart_bubble.rs"] pub mod smart_bubble; #[path = "lib/cocktail_shaker.rs"] pub mod cocktail_shaker; #[path = "lib/selection.rs"] pub mod selection; #[path = "lib/insertion.rs"] pub mod insertion; #[path = "lib/double_selection.rs"] pub mod double_selection; #[path = "lib/stooge.rs"] pub mod stooge; #[path = "lib/quick.rs"] pub mod quick; #[path = "lib/merge.rs"] pub mod merge; #[path = "lib/heap.rs"] pub mod heap; #[path = "lib/counting.rs"] pub mod counting; #[path = "lib/bogo.rs"] pub mod bogo;