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

Function main

publication/code/chapter07/tim_sort_without_gallop.rs:430–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428}
429
430fn main() {
431 let mut nums: Vec<i32> = vec![
432 2, 4, 7, 8, 23, 19, 16, 14, 13, 12, 10, 20,
433 18, 17, 15, 11, 9, -1, 5, 6, 1, 3, 21, 40,
434 22, 39, 38, 37, 36, 35, 34, 33, 24, 30, 31, 32,
435 25, 26, 27, 28, 29, 41, 42, 43, 44, 45, 46, 47,
436 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
437 60, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70,
438 61, 62, 63, 64, 65, 66, 67, 68, 69, 95, 94, 93,
439 92, 91, 90, 85, 82, 83, 84, 81, 86, 87, 88, 89,
440 ];
441 tim_sort(&mut nums);
442 println!("sorted nums: {:?}", nums);
443}

Callers

nothing calls this directly

Calls 1

tim_sortFunction · 0.70

Tested by

no test coverage detected