Enum ndk::bitmap::BitmapFormat
source · [−]#[repr(u32)]
pub enum BitmapFormat {
NONE,
RGBA_8888,
RGB_565,
RGBA_4444,
A_8,
RGBA_F16,
}
Available on crate feature
bitmap
only.Variants
NONE
RGBA_8888
RGB_565
RGBA_4444
👎 Deprecated:
Deprecated in API level 13. Because of the poor quality of this configuration, it is advised to use ARGB_8888 instead.
A_8
RGBA_F16
Trait Implementations
sourceimpl Clone for BitmapFormat
impl Clone for BitmapFormat
sourcefn clone(&self) -> BitmapFormat
fn clone(&self) -> BitmapFormat
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 BitmapFormat
impl Debug for BitmapFormat
sourceimpl From<BitmapFormat> for u32
impl From<BitmapFormat> for u32
sourcefn from(enum_value: BitmapFormat) -> Self
fn from(enum_value: BitmapFormat) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<BitmapFormat> for BitmapFormat
impl PartialEq<BitmapFormat> for BitmapFormat
sourceimpl TryFrom<u32> for BitmapFormat
impl TryFrom<u32> for BitmapFormat
type Error = TryFromPrimitiveError<BitmapFormat>
type Error = TryFromPrimitiveError<BitmapFormat>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for BitmapFormat
impl TryFromPrimitive for BitmapFormat
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BitmapFormat
impl Eq for BitmapFormat
impl StructuralEq for BitmapFormat
impl StructuralPartialEq for BitmapFormat
Auto Trait Implementations
impl RefUnwindSafe for BitmapFormat
impl Send for BitmapFormat
impl Sync for BitmapFormat
impl Unpin for BitmapFormat
impl UnwindSafe for BitmapFormat
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