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

Function main

publication/code/chapter07/tim_sort.rs:663–676  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

661}
662
663fn main() {
664 let mut nums: Vec<i32> = vec![
665 2, 4, 7, 8, 23, 19, 16, 14, 13, 12, 10, 20,
666 18, 17, 15, 11, 9, -1, 5, 6, 1, 3, 21, 22,
667 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 24,
668 25, 26, 27, 28, 29, 41, 42, 43, 44, 45, 46, 47,
669 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
670 60, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70,
671 61, 62, 63, 64, 65, 66, 67, 68, 69, 95, 94, 93,
672 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81,
673 ];
674 tim_sort(&mut nums);
675 println!("sorted nums: {:?}", nums);
676}

Callers

nothing calls this directly

Calls 1

tim_sortFunction · 0.70

Tested by

no test coverage detected