Enum asefile::AsepriteParseError
source · pub enum AsepriteParseError {
InvalidInput(String),
UnsupportedFeature(String),
InternalError(String),
IoError(Error),
}
Expand description
An error occured while reading the Aseprite file.
Variants§
InvalidInput(String)
The input data was malformed. String contains detailed message.
UnsupportedFeature(String)
The input data was correct, but uses a feature that is not supported by
this version of asefile
. String contains detailed message.
InternalError(String)
An internal error occurred.
IoError(Error)
An IO error occured. Also includes errors where the input was shorter than expected.
Trait Implementations§
source§impl Debug for AsepriteParseError
impl Debug for AsepriteParseError
source§impl Display for AsepriteParseError
impl Display for AsepriteParseError
source§impl Error for AsepriteParseError
impl Error for AsepriteParseError
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<Error> for AsepriteParseError
impl From<Error> for AsepriteParseError
source§impl From<FromUtf8Error> for AsepriteParseError
impl From<FromUtf8Error> for AsepriteParseError
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AsepriteParseError
impl !RefUnwindSafe for AsepriteParseError
impl Send for AsepriteParseError
impl Sync for AsepriteParseError
impl Unpin for AsepriteParseError
impl !UnwindSafe for AsepriteParseError
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