pub enum LogoLoadError {
Io {
source: Error,
},
Image {
source: ImageError,
},
InvalidColor {
x: u32,
y: u32,
backtrace: Backtrace,
},
ImageSize {
expected: ImageSize,
actual: ImageSize,
backtrace: Backtrace,
},
}Expand description
Errors when loading a Logo.
Variants§
Io
See io::Error.
Image
See ImageError.
Fields
§
source: ImageErrorSource error.
InvalidColor
Occurs when the input image has a pixel which isn’t white or black.
Fields
ImageSize
Occurs when the input image has the wrong size.
Trait Implementations§
Source§impl Debug for LogoLoadError
impl Debug for LogoLoadError
Source§impl Display for LogoLoadError
impl Display for LogoLoadError
Source§impl Error for LogoLoadError
impl Error for LogoLoadError
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 ErrorCompat for LogoLoadError
impl ErrorCompat for LogoLoadError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<Error> for LogoLoadError
impl From<Error> for LogoLoadError
Source§impl From<ImageError> for LogoLoadError
impl From<ImageError> for LogoLoadError
Source§fn from(error: ImageError) -> Self
fn from(error: ImageError) -> Self
Converts to this type from the input type.
Source§impl From<LogoLoadError> for RomSaveError
impl From<LogoLoadError> for RomSaveError
Source§fn from(error: LogoLoadError) -> Self
fn from(error: LogoLoadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for LogoLoadError
impl !RefUnwindSafe for LogoLoadError
impl Send for LogoLoadError
impl Sync for LogoLoadError
impl Unpin for LogoLoadError
impl !UnwindSafe for LogoLoadError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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