grid-sim 0.3.0

grid-based simulation in rust
Documentation
#[derive(PartialEq, Eq, Hash, Debug, Clone)]
pub enum CellState {
    Live,
    Dead,
    Uninitialized,
    OOB,
}
pub struct Cell {
    xy: (u64, u64),
    state: CellState,
}
impl Cell {
    pub fn new(xy: (u64, u64), init: CellState) -> Self {
        Cell { xy: xy, state: init }
    }
    pub fn set_state(&mut self, new: CellState) {
        self.state = new;
    }
    pub fn get_state(&self) -> &CellState {
        &self.state
    }
    pub fn get_xy(&self) -> (u64, u64) {
        self.xy
    }
}