Enum ndk::bitmap::BitmapFormat
source · #[non_exhaustive]#[repr(i32)]pub enum BitmapFormat {
NONE = 0,
RGBA_8888 = 1,
RGB_565 = 4,
RGBA_4444 = 7,
A_8 = 8,
RGBA_F16 = 9,
RGBA_1010102 = 10,
}
Available on crate feature
bitmap
only.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.
NONE = 0
RGBA_8888 = 1
RGB_565 = 4
RGBA_4444 = 7
👎Deprecated: Deprecated in API level 13. Because of the poor quality of this configuration, it is advised to use ARGB_8888 instead.
A_8 = 8
RGBA_F16 = 9
RGBA_1010102 = 10
Trait Implementations§
source§impl Clone for BitmapFormat
impl Clone for BitmapFormat
source§fn clone(&self) -> BitmapFormat
fn clone(&self) -> BitmapFormat
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 BitmapFormat
impl Debug for BitmapFormat
source§impl From<BitmapFormat> for i32
impl From<BitmapFormat> for i32
source§fn from(enum_value: BitmapFormat) -> Self
fn from(enum_value: BitmapFormat) -> Self
Converts to this type from the input type.
source§impl From<i32> for BitmapFormat
impl From<i32> for BitmapFormat
source§impl FromPrimitive for BitmapFormat
impl FromPrimitive for BitmapFormat
source§impl PartialEq for BitmapFormat
impl PartialEq for BitmapFormat
source§fn eq(&self, other: &BitmapFormat) -> bool
fn eq(&self, other: &BitmapFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BitmapFormat
impl Eq for BitmapFormat
impl StructuralPartialEq for BitmapFormat
Auto Trait Implementations§
impl Freeze for BitmapFormat
impl RefUnwindSafe for BitmapFormat
impl Send for BitmapFormat
impl Sync for BitmapFormat
impl Unpin for BitmapFormat
impl UnwindSafe for BitmapFormat
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