rust-grid 0.1.1

Very minimal library to store large grids of any type in memory, with a user-friendly interface
Documentation
  • Coverage
  • 20%
    1 out of 5 items documented1 out of 1 items with examples
  • Size
  • Source code size: 6.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.82 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • wait-what/rust-grid
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • wait-what

rust-grid

rust-grid is a very minimal library to store large grids of any type in memory, with a user-friendly interface.

Examples

use rust_grid::*;

fn main() {
    let grid: Grid<bool> = Grid::new(10, 15, false);

    // Two ways to access data
    let (x, y) = (3, 4);
    println!("{}", grid[y][x]);
    println!("{}", grid[(x, y)]);

    // Get the size
    let (width, height) = grid.size();
}