Enum show_image::error::ImageDataError
source · pub enum ImageDataError {
UnsupportedImageFormat(UnsupportedImageFormat),
Other(String),
}
Expand description
An error that can occur while interpreting image data.
Variants§
UnsupportedImageFormat(UnsupportedImageFormat)
The image data is not in a supported format.
Other(String)
An other error occured.
Trait Implementations§
source§impl Clone for ImageDataError
impl Clone for ImageDataError
source§fn clone(&self) -> ImageDataError
fn clone(&self) -> ImageDataError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageDataError
impl Debug for ImageDataError
source§impl Display for ImageDataError
impl Display for ImageDataError
source§impl Error for ImageDataError
impl Error for ImageDataError
1.30.0 · 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<'a> From<&'a str> for ImageDataError
impl<'a> From<&'a str> for ImageDataError
source§impl From<ImageDataError> for SetImageError
impl From<ImageDataError> for SetImageError
source§fn from(other: ImageDataError) -> Self
fn from(other: ImageDataError) -> Self
Converts to this type from the input type.
source§impl From<String> for ImageDataError
impl From<String> for ImageDataError
source§impl From<UnsupportedImageFormat> for ImageDataError
impl From<UnsupportedImageFormat> for ImageDataError
source§fn from(other: UnsupportedImageFormat) -> Self
fn from(other: UnsupportedImageFormat) -> Self
Converts to this type from the input type.
source§impl PartialEq for ImageDataError
impl PartialEq for ImageDataError
source§fn eq(&self, other: &ImageDataError) -> bool
fn eq(&self, other: &ImageDataError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ImageDataError
impl StructuralPartialEq for ImageDataError
Auto Trait Implementations§
impl Freeze for ImageDataError
impl RefUnwindSafe for ImageDataError
impl Send for ImageDataError
impl Sync for ImageDataError
impl Unpin for ImageDataError
impl UnwindSafe for ImageDataError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.