MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / create_array

Function create_array

Source Code/11-05.rs:11–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 const SIZE: usize = 100_000;
10 const N_ARRAY: usize = 1_000_000;
11 fn create_array() -> Box<[u8; SIZE]> { Box::new([0u8; SIZE]) }
12 fn recursive_func(n: usize) {
13 let a = create_array();
14 println!("{} {}", N_ARRAY - n + 1, a[0]);

Callers 1

recursive_funcFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected