#[repr(u8)]pub enum AsCtrlFormat {
Show 16 variants
ARGB8888 = 0,
RGBA888 = 1,
_RESERVED_2 = 2,
_RESERVED_3 = 3,
RGB888 = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
_RESERVED_7 = 7,
ARGB1555 = 8,
ARGB4444 = 9,
RGBA5551 = 10,
RGBA4444 = 11,
RGB555 = 12,
RGB444 = 13,
RGB565 = 14,
_RESERVED_f = 15,
}Variants§
ARGB8888 = 0
32-bit pixels with alpha
RGBA888 = 1
2-bit pixel with alpha at low 8 bits
_RESERVED_2 = 2
_RESERVED_3 = 3
RGB888 = 4
32-bit pixels without alpha (unpacked 24-bit format)
_RESERVED_5 = 5
_RESERVED_6 = 6
_RESERVED_7 = 7
ARGB1555 = 8
16-bit pixels with alpha
ARGB4444 = 9
16-bit pixels with alpha
RGBA5551 = 10
16-bit pixel with alpha at low 1 bit
RGBA4444 = 11
16-bit pixel with alpha at low 4 bits
RGB555 = 12
16-bit pixels without alpha
RGB444 = 13
16-bit pixels without alpha
RGB565 = 14
16-bit pixels without alpha
_RESERVED_f = 15
Implementations§
Source§impl AsCtrlFormat
impl AsCtrlFormat
Trait Implementations§
Source§impl Clone for AsCtrlFormat
impl Clone for AsCtrlFormat
Source§fn clone(&self) -> AsCtrlFormat
fn clone(&self) -> AsCtrlFormat
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 AsCtrlFormat
impl Debug for AsCtrlFormat
Source§impl From<AsCtrlFormat> for u8
impl From<AsCtrlFormat> for u8
Source§fn from(val: AsCtrlFormat) -> u8
fn from(val: AsCtrlFormat) -> u8
Converts to this type from the input type.
Source§impl From<u8> for AsCtrlFormat
impl From<u8> for AsCtrlFormat
Source§fn from(val: u8) -> AsCtrlFormat
fn from(val: u8) -> AsCtrlFormat
Converts to this type from the input type.
Source§impl Ord for AsCtrlFormat
impl Ord for AsCtrlFormat
Source§fn cmp(&self, other: &AsCtrlFormat) -> Ordering
fn cmp(&self, other: &AsCtrlFormat) -> 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 AsCtrlFormat
impl PartialEq for AsCtrlFormat
Source§impl PartialOrd for AsCtrlFormat
impl PartialOrd for AsCtrlFormat
impl Copy for AsCtrlFormat
impl Eq for AsCtrlFormat
impl StructuralPartialEq for AsCtrlFormat
Auto Trait Implementations§
impl Freeze for AsCtrlFormat
impl RefUnwindSafe for AsCtrlFormat
impl Send for AsCtrlFormat
impl Sync for AsCtrlFormat
impl Unpin for AsCtrlFormat
impl UnwindSafe for AsCtrlFormat
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