#[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
Failed
Generic failure code, something went wrong.
UnknownType
Unknown image type.
CorruptImage
An image file was broken somehow.
Trait Implementations
sourceimpl Clone for BitmapError
impl Clone for BitmapError
sourcefn clone(&self) -> BitmapError
fn clone(&self) -> BitmapError
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 BitmapError
impl Debug for BitmapError
sourceimpl Display for BitmapError
impl Display for BitmapError
sourceimpl Hash for BitmapError
impl Hash for BitmapError
sourceimpl Ord for BitmapError
impl Ord for BitmapError
sourceimpl PartialEq<BitmapError> for BitmapError
impl PartialEq<BitmapError> for BitmapError
sourceimpl PartialOrd<BitmapError> for BitmapError
impl PartialOrd<BitmapError> for BitmapError
sourcefn partial_cmp(&self, other: &BitmapError) -> Option<Ordering>
fn partial_cmp(&self, other: &BitmapError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for BitmapError
impl Eq for BitmapError
impl StructuralEq for BitmapError
impl StructuralPartialEq for BitmapError
Auto Trait Implementations
impl RefUnwindSafe for BitmapError
impl Send for BitmapError
impl Sync for BitmapError
impl Unpin for BitmapError
impl UnwindSafe for BitmapError
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
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.