#[non_exhaustive]pub enum BitmapError {
Failed,
UnknownType,
CorruptImage,
}
Expand description
Error codes that can be thrown when performing bitmap
operations. Note that gdk_pixbuf_new_from_file
can also throw
errors directly from the underlying image loading library. For
example, if GdkPixbuf
is used then errors GdkPixbufError
s
will be used directly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Failed
Generic failure code, something went wrong.
UnknownType
Unknown image type.
CorruptImage
An image file was broken somehow.
Trait Implementations§
Source§impl Clone for BitmapError
impl Clone for BitmapError
Source§fn clone(&self) -> BitmapError
fn clone(&self) -> BitmapError
Returns a duplicate 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 BitmapError
impl Debug for BitmapError
Source§impl Display for BitmapError
impl Display for BitmapError
Source§impl ErrorDomain for BitmapError
impl ErrorDomain for BitmapError
Source§impl<'a> FromValue<'a> for BitmapError
impl<'a> FromValue<'a> for BitmapError
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for BitmapError
impl<'a> FromValueOptional<'a> for BitmapError
Source§impl Hash for BitmapError
impl Hash for BitmapError
Source§impl Ord for BitmapError
impl Ord for BitmapError
Source§fn cmp(&self, other: &BitmapError) -> Ordering
fn cmp(&self, other: &BitmapError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BitmapError
impl PartialEq for BitmapError
Source§impl PartialOrd for BitmapError
impl PartialOrd for BitmapError
Source§impl SetValue for BitmapError
impl SetValue for BitmapError
Source§impl StaticType for BitmapError
impl StaticType for BitmapError
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for BitmapError
impl Eq for BitmapError
impl StructuralPartialEq for BitmapError
Auto Trait Implementations§
impl Freeze for BitmapError
impl RefUnwindSafe for BitmapError
impl Send for BitmapError
impl Sync for BitmapError
impl Unpin for BitmapError
impl UnwindSafe for BitmapError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.