pub enum ReadError {
IoError(Error),
InvalidMagic,
UnsupportedVersion(u16),
InvalidType(u8),
InvalidLayerLength,
InvalidHeader(String),
}Expand description
A reason why reading a tilemap failed.
Variants§
IoError(Error)
IO error.
InvalidMagic
Invalid magic string.
UnsupportedVersion(u16)
Unsupported version.
InvalidType(u8)
Invalid type in property map.
InvalidLayerLength
Layer length was not a multiple of two.
InvalidHeader(String)
Invalid header.
Trait Implementations§
Source§impl Error for ReadError
impl Error for ReadError
1.30.0 · 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 !RefUnwindSafe for ReadError
impl !UnwindSafe for ReadError
impl Freeze for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnsafeUnpin for ReadError
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