Enum takuzu::GridError
[−]
[src]
pub enum GridError { BadSize(GridSizeError), Illegal, }
An error returned when checking if the grid is well-sized and legal.
Variants
BadSize(GridSizeError)
The grid does not have the right size.
(It should be square, of non-null, even size.)
Illegal
The grid is illegal, that is it infringes at least one of the rules.
Trait Implementations
impl Debug for GridError
[src]
impl Display for GridError
[src]
impl Error for GridError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<GridSizeError> for GridError
[src]
fn from(err: GridSizeError) -> Self
Performs the conversion.