Macro o1_utils::box_array2
source · macro_rules! box_array2 { ($val:expr; $len1:expr; $len2:expr) => { ... }; }
Expand description
A macro similar to vec![vec![$elem; $size1]; $size2]
which
returns a two-dimensional boxed array, allocated directly on the
heap (via a vector, with reallocations).
let _: Box<[[u8; 1024]; 512]> = box_array![0; 1024; 512];