rlifesrc-lib 0.3.3

A Game of Life pattern searcher (library).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::cells::Coord;
use ca_rules::ParseRuleError;
use thiserror::Error;

/// All kinds of errors in this crate.
#[derive(Clone, Debug, PartialEq, Eq, Error)]
pub enum Error {
    #[error("Unable to get the state of cell {0:?}")]
    GetCellError(Coord),
    #[error("Unable to set cell at {0:?}")]
    SetCellError(Coord),
    #[error("Invalid rule: {0:?}")]
    ParseRuleError(#[from] ParseRuleError),
}