#[non_exhaustive]pub enum AsepriteError {
Parse(String),
Io(Error),
InvalidConfiguration(AsepriteInvalidError),
}
Expand description
Errors that can happen while loading an aseprite file
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Parse(String)
An error occured during parsing, see AsepriteParseError
for possible causes
Either way, this cannot be recovered from
Io(Error)
An IO error occured
InvalidConfiguration(AsepriteInvalidError)
An invalid configuration was found while decoding
Trait Implementations§
Source§impl Debug for AsepriteError
impl Debug for AsepriteError
Source§impl Display for AsepriteError
impl Display for AsepriteError
Source§impl Error for AsepriteError
impl Error for AsepriteError
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()
Source§impl From<AsepriteInvalidError> for AsepriteError
impl From<AsepriteInvalidError> for AsepriteError
Source§fn from(source: AsepriteInvalidError) -> Self
fn from(source: AsepriteInvalidError) -> Self
Converts to this type from the input type.
Source§impl<'a> From<AsepriteParseError<&'a [u8]>> for AsepriteError
impl<'a> From<AsepriteParseError<&'a [u8]>> for AsepriteError
Source§fn from(other: AsepriteParseError<&'a [u8]>) -> Self
fn from(other: AsepriteParseError<&'a [u8]>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AsepriteError
impl !RefUnwindSafe for AsepriteError
impl Send for AsepriteError
impl Sync for AsepriteError
impl Unpin for AsepriteError
impl !UnwindSafe for AsepriteError
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