Module array

Source
Expand description

Homogeneous data structures, random-access and sequentially allocated.

Extends: std::{array, vec}


They enable efficient iterable storage over a sequence of the same type.

Macros§

array_init
Initializes a [$T; $LEN] array in multiple ways.
vec_alloc
alloc Creates a Vec containing the arguments.

Structs§

Array
📦 A static 1-dimensional array backed by the core array primitive.
Array2d
📦 A static 2-dimensional Array.
ArrayFmt
A formatting wrapper for core arrays, implementing Display and Debug.
ArrayIntoIter
🔄 core A by-value array iterator.
ArrayUninitunsafe_array
A static array allowing uninitialized elements.
Vecalloc
📦 alloc A contiguous growable array.

Enums§

VecChunkalloc
📦 A persistent data structure with efficient append and concatenation operations.

Traits§

DataArray
📦 An abstract array data type.
ExtArray
Extension trait providing convenience methods for [T; N] arrays.
ExtVecalloc
Extension trait providing additional methods for Vec.

Functions§

array_from_fn
core Creates an array [T; N], where each T is returned from cb from its index.
array_from_mut
core Converts a mutable reference to T into &mut [T; 1] (without copying).
array_from_ref
core Converts a reference to T into &[T; 1] (without copying).