Struct show_image::error::UnsupportedImageFormat
source · [−]pub struct UnsupportedImageFormat {
pub format: String,
}
Expand description
An error indicating that the image data is not in a supported format.
Fields
format: String
The unsupported format.
Trait Implementations
sourceimpl Clone for UnsupportedImageFormat
impl Clone for UnsupportedImageFormat
sourcefn clone(&self) -> UnsupportedImageFormat
fn clone(&self) -> UnsupportedImageFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnsupportedImageFormat
impl Debug for UnsupportedImageFormat
sourceimpl Display for UnsupportedImageFormat
impl Display for UnsupportedImageFormat
sourceimpl Error for UnsupportedImageFormat
impl Error for UnsupportedImageFormat
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<UnsupportedImageFormat> for ImageDataError
impl From<UnsupportedImageFormat> for ImageDataError
sourcefn from(other: UnsupportedImageFormat) -> Self
fn from(other: UnsupportedImageFormat) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<UnsupportedImageFormat> for UnsupportedImageFormat
impl PartialEq<UnsupportedImageFormat> for UnsupportedImageFormat
sourcefn eq(&self, other: &UnsupportedImageFormat) -> bool
fn eq(&self, other: &UnsupportedImageFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UnsupportedImageFormat) -> bool
fn ne(&self, other: &UnsupportedImageFormat) -> bool
This method tests for !=
.
impl Eq for UnsupportedImageFormat
impl StructuralEq for UnsupportedImageFormat
impl StructuralPartialEq for UnsupportedImageFormat
Auto Trait Implementations
impl RefUnwindSafe for UnsupportedImageFormat
impl Send for UnsupportedImageFormat
impl Sync for UnsupportedImageFormat
impl Unpin for UnsupportedImageFormat
impl UnwindSafe for UnsupportedImageFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more