#array #2d-array #vector #ordered #2d

contiguous_collections

A library of collections backed by flat contiguous arrays

2 unstable releases

0.2.0 Sep 22, 2024
0.1.0 Sep 21, 2024

#1589 in Data structures

24 downloads per month

MIT license

28KB
281 lines

contiguous_collections

Crates.io Documentation

contiguous_collections is a small Rust library of collections backed by flat contiguous arrays:

  • Array2<T>, a fixed-size two-dimensional array of Ts stored as a flat boxed slice in row-major order.
  • OrdVec<T, K>, an ordered Vec<T> intended for fast lookup of items by key, with the key stored inside each T and retrieved via the key function K.

lib.rs:

A library of collections backed by flat contiguous arrays.

Dependencies

~160KB