pub enum FileParsingErrorKind {
UnknownFormat,
IoError,
IncompleteFile,
RuleParsingError,
CoordParsingError,
OutOfBoundCoords(GridErrorKind),
}
Expand description
Represents the possible errors which can occur when manipulating a life file.
Variants§
UnknownFormat
IoError
IncompleteFile
RuleParsingError
CoordParsingError
OutOfBoundCoords(GridErrorKind)
Trait Implementations§
Source§impl Debug for FileParsingErrorKind
impl Debug for FileParsingErrorKind
Source§impl Display for FileParsingErrorKind
impl Display for FileParsingErrorKind
Source§impl Error for FileParsingErrorKind
impl Error for FileParsingErrorKind
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<Error> for FileParsingErrorKind
impl From<Error> for FileParsingErrorKind
Source§fn from(_: Error) -> FileParsingErrorKind
fn from(_: Error) -> FileParsingErrorKind
Converts to this type from the input type.
Source§impl From<GridErrorKind> for FileParsingErrorKind
impl From<GridErrorKind> for FileParsingErrorKind
Source§fn from(err: GridErrorKind) -> FileParsingErrorKind
fn from(err: GridErrorKind) -> FileParsingErrorKind
Converts to this type from the input type.
Source§impl From<ParseIntError> for FileParsingErrorKind
impl From<ParseIntError> for FileParsingErrorKind
Source§fn from(_: ParseIntError) -> FileParsingErrorKind
fn from(_: ParseIntError) -> FileParsingErrorKind
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileParsingErrorKind
impl RefUnwindSafe for FileParsingErrorKind
impl Send for FileParsingErrorKind
impl Sync for FileParsingErrorKind
impl Unpin for FileParsingErrorKind
impl UnwindSafe for FileParsingErrorKind
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
Source§impl<T> Content for T
impl<T> Content for T
Source§fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
Source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
Source§fn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.