MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / main

Function main

publication/code/chapter07/bubble_sort.rs:45–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45fn main() {
46 let mut nums = [54,26,93,17,77,31,44,55,20];
47 bubble_sort1(&mut nums);
48 println!("sorted nums: {:?}", nums);
49
50 let mut nums = [54,26,93,17,77,31,44,55,20];
51 bubble_sort2(&mut nums);
52 println!("sorted nums: {:?}", nums);
53
54 let mut nums = [54,26,93,17,77,31,44,55,20];
55 bubble_sort3(&mut nums);
56 println!("sorted nums: {:?}", nums);
57}

Callers

nothing calls this directly

Calls 3

bubble_sort1Function · 0.70
bubble_sort2Function · 0.70
bubble_sort3Function · 0.70

Tested by

no test coverage detected