rust-grid 0.1.1

Very minimal library to store large grids of any type in memory, with a user-friendly interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::*;

impl<T> Row<T> {
    pub fn size(&self) -> usize {
        self.cells.len()
    }
}

impl<T> Grid<T> {
    pub fn size(&self) -> (usize, usize) {
        (
            self.rows[0].size(),
            self.rows.len()
        )
    }
}