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

Function main

publication/code/chapter07/quick_sort.rs:70–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70fn main() {
71 let mut nums = [54,26,93,17,77,31,44,55,20];
72 let high = nums.len() - 1;
73 quick_sort1(&mut nums, 0, high);
74 println!("sorted nums: {:?}", nums);
75
76 let mut nums = [54,26,93,17,77,31,44,55,20];
77 let high = nums.len() - 1;
78 quick_sort2(&mut nums, 0, high);
79 println!("sorted nums: {:?}", nums);
80}

Callers

nothing calls this directly

Calls 3

quick_sort1Function · 0.70
quick_sort2Function · 0.70
lenMethod · 0.45

Tested by

no test coverage detected