pub enum PyxelError {
Io(Error),
Zip(ZipError),
Serde(Error),
}
Expand description
An enumeration of Pyxel errors.
Variants§
Io(Error)
An error occured during an IO operation.
Zip(ZipError)
An error occured during a zip operation.
Serde(Error)
An error occured during deserialization.
Trait Implementations§
Source§impl Debug for PyxelError
impl Debug for PyxelError
Source§impl Display for PyxelError
impl Display for PyxelError
Source§impl Error for PyxelError
impl Error for PyxelError
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 PyxelError
impl From<Error> for PyxelError
Source§fn from(err: Error) -> PyxelError
fn from(err: Error) -> PyxelError
Converts to this type from the input type.
Source§impl From<Error> for PyxelError
impl From<Error> for PyxelError
Source§fn from(err: Error) -> PyxelError
fn from(err: Error) -> PyxelError
Converts to this type from the input type.
Source§impl From<ZipError> for PyxelError
impl From<ZipError> for PyxelError
Source§fn from(err: ZipError) -> PyxelError
fn from(err: ZipError) -> PyxelError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PyxelError
impl !RefUnwindSafe for PyxelError
impl Send for PyxelError
impl Sync for PyxelError
impl Unpin for PyxelError
impl !UnwindSafe for PyxelError
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