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 standardvec!
macro.
Structs§
- Chunked
Vec - A vector-like container that stores elements in fixed-size chunks, providing efficient memory allocation and element access.
- Chunked
VecSized - A marker type used for compile-time chunk size validation.
Type Aliases§
- Chunk
- A fixed-size chunk type used for storing elements in
ChunkedVec
.