Project Awesome project awesome

Data structures > becheran/grid

Provide a two dimensional data structure that is easy to use and fast. build status

Package 101 stars GitHub

Grid

docs crates.io build status license

Data structure grid for rust. Provide a two dimensional data structure for rust that is easy to use and fast. Most of the functionality provided by the std::vec::Vec type for one dimensional vectors is implemented for two dimensions in this crate.

To use grid with no_std import the library such as:

grid = { version = "*", default-features = false }

Safety checks

The CI in .github/workflows/rust.yml runs the test suite under Miri to catch undefined behavior in exercised code paths.

To run the same check locally:

rustup toolchain install nightly --component miri
cargo +nightly miri setup
cargo +nightly miri test --verbose
Back to Rust