pub enum MulReaderError {
Io(Error),
IndexOutOfBounds(u32),
OffsetOutOfBounds {
index: u32,
offset: u32,
},
UnexpectedSize {
found: u32,
expected: u32,
},
FailedParse(String),
CoordinatesOutOfBounds {
x: u32,
y: u32,
},
}Expand description
Errors that occur when reading muls
Variants§
Io(Error)
IndexOutOfBounds(u32)
OffsetOutOfBounds
UnexpectedSize
FailedParse(String)
CoordinatesOutOfBounds
Trait Implementations§
Source§impl Debug for MulReaderError
impl Debug for MulReaderError
Source§impl Display for MulReaderError
impl Display for MulReaderError
Source§impl Error for MulReaderError
impl Error for MulReaderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for MulReaderError
impl !RefUnwindSafe for MulReaderError
impl Send for MulReaderError
impl Sync for MulReaderError
impl Unpin for MulReaderError
impl UnsafeUnpin for MulReaderError
impl !UnwindSafe for MulReaderError
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