Crate boxarray

source ·
Expand description

Safe way to allocate and initialize nested arrays directly on the heap inside a Box.

Usage

In order to initialize a Boxed nested-array, simply call the boxarray function and give it the value (here v) to initialize with:

  let v = 7.0;
  let a: Box<[[[f64; 3]; 2]; 4]> = boxarray::boxarray(v);

Structs

  • Append element constructor for CUList. Represent the size of the out-most array, where the list L correspond to the sizes of the nested arrays.
  • Single element constructor for CUList. Represend the size a single non-nested array.

Traits

  • Constrains valid nested arrays.
  • Type-level list of const generic usize.

Functions

  • The boxarray function allow to allocate and initialize nested arrays directly on the heap inside a Box.