rust_grid/lib.rs
1//! # rust-grid
2//!
3//! rust-grid is a very minimal library to store large grids of any type in memory, with a user-friendly interface.
4//!
5//! # Examples
6//! ```
7//! use rust_grid::*;
8//!
9//! fn main() {
10//! let grid: Grid<bool> = Grid::new(10, 15, false);
11//!
12//! // Two ways to access data
13//! let (x, y) = (3, 4);
14//! println!("{}", grid[y][x]);
15//! println!("{}", grid[(x, y)]);
16//!
17//! // Get the size
18//! let (width, height) = grid.size();
19//! }
20//! ```
21//!
22
23mod index;
24mod new;
25mod size;
26mod structure;
27
28pub use index::*;
29pub use new::*;
30pub use size::*;
31pub use structure::*;
32
33mod tests;