Enum ndk::bitmap::BitmapCompressError
source · pub enum BitmapCompressError {
BitmapError(BitmapError),
DataSpaceUnknown,
}
Available on crate features
bitmap
and api-level-30
only.Expand description
Encapsulates possible errors returned by Bitmap::compress()
or Bitmap::compress_raw()
.
Variants§
BitmapError(BitmapError)
DataSpaceUnknown
Bitmap
compression requires a known DataSpace
. DataSpace::Unknown
is invalid
even though it is typically treated as sRGB
, for that DataSpace::Srgb
has to be passed
explicitly.
Trait Implementations§
source§impl Debug for BitmapCompressError
impl Debug for BitmapCompressError
source§impl Display for BitmapCompressError
impl Display for BitmapCompressError
source§impl Error for BitmapCompressError
impl Error for BitmapCompressError
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 From<BitmapError> for BitmapCompressError
impl From<BitmapError> for BitmapCompressError
source§fn from(source: BitmapError) -> Self
fn from(source: BitmapError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BitmapCompressError
impl RefUnwindSafe for BitmapCompressError
impl Send for BitmapCompressError
impl Sync for BitmapCompressError
impl Unpin for BitmapCompressError
impl UnwindSafe for BitmapCompressError
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