Skip to main content

Module array

Module array 

Source
Expand description

Contiguous homogeneous storage with dimensional projections.

array โ—‰

Extends: std::{array, vec}


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

Macrosยง

init_array
๐ŸŒฑ ๐Ÿ—ƒ๏ธ 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.
ArrayFrom
๐Ÿ’ฑ ๐Ÿซ— Compile-time conversion from slice-like types to arrays.
ArrayUninitunsafe_array
๐Ÿ—ƒ๏ธ A static array allowing uninitialized elements.
Vec
๐Ÿ—ƒ๏ธ alloc A contiguous growable array.

Enumsยง

VecChunkalloc
๐Ÿ—ƒ๏ธ A persistent data structure with efficient append and concatenation operations.

Traitsยง

ArrayExt
๐Ÿ—ƒ๏ธ Extension trait providing convenience methods for [T; N] arrays.
DataArray
๐Ÿ—ƒ๏ธ An abstract array data type.
VecExtalloc
๐Ÿ—ƒ๏ธ 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).