Enum rlifesrc_lib::Error
source · pub enum Error {
SetCellError(Coord),
ParseRuleError(ParseRuleError),
B0S8Error,
SquareWorldError,
DiagonalWidthError,
NonPositiveError,
InvalidState(Coord, State),
}
Expand description
All kinds of errors in this crate.
Variants§
SetCellError(Coord)
Unable to set cell at {0:?}.
ParseRuleError(ParseRuleError)
Invalid rule: {0:?}.
B0S8Error
B0S8 rules are not supported yet. Please use the inverted rule.
SquareWorldError
Symmetry or transformation requires the world to be square.
DiagonalWidthError
Symmetry or transformation requires the world to have no diagonal width.
NonPositiveError
Width / height / period should be positive.
InvalidState(Coord, State)
Cell at {0:?} has invalid state: {1:?}.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseRuleError> for Error
impl From<ParseRuleError> for Error
source§fn from(source: ParseRuleError) -> Self
fn from(source: ParseRuleError) -> Self
Converts to this type from the input type.