Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Very minimal rust library to store large grids of any type in memory, with a user-friendly interface

License

Notifications You must be signed in to change notification settings

wait-what/rust-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
}

About

Very minimal rust library to store large grids of any type in memory, with a user-friendly interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages