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.
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more