Crate chunked_vec

Source
Expand description

ChunkedVec is a vector-like data structure that stores elements in fixed-size chunks.

§Features

  • Fixed-size chunk-based storage for better memory management
  • Standard vector-like interface
  • Index-based access with bounds checking

§Example

use chunked_vec::ChunkedVec;

let mut vec = ChunkedVec::<i32>::new();
vec.push(1);
vec.push(2);
assert_eq!(vec[0], 1);
assert_eq!(vec.len(), 2);

Macros§

chunked_vec
Creates a new [ChunkedVec] using a syntax similar to the standard vec! macro.

Structs§

ChunkedVec
A vector-like container that stores elements in fixed-size chunks, providing efficient memory allocation and element access.
ChunkedVecSized
A marker type used for compile-time chunk size validation.

Type Aliases§

Chunk
A fixed-size chunk type used for storing elements in ChunkedVec.