boxarray

GitHub Workflow Status Crates.io Docs.rs

Safe way to allocate and initialize nested arrays directly on the heap in Rust.

Usage

To use boxarray in your Rust project, simply add it as a dependency in your Cargo.toml: toml [dependencies] boxarray = "1.0.0" Then import and use it in your project: ```rust use boxarray::boxarray;

fn main() { let v = 7.0; let a: Box<[[[f64; 3]; 2]; 4]> = boxarray(v); println!("{a:?}"); } ```