Enum ColorCoding
#[repr(u8)]pub enum ColorCoding {
Show 16 variants
Rgb565config1 = 0,
Rgb565config2 = 1,
Rgb565config3 = 2,
Rgb666config1 = 3,
Rgb666config2 = 4,
Rgb888 = 5,
_RESERVED_6 = 6,
_RESERVED_7 = 7,
_RESERVED_8 = 8,
_RESERVED_9 = 9,
_RESERVED_a = 10,
_RESERVED_b = 11,
_RESERVED_c = 12,
_RESERVED_d = 13,
_RESERVED_e = 14,
_RESERVED_f = 15,
}Variants§
Rgb565config1 = 0
16-bit configuration 1 (RGB565)
Rgb565config2 = 1
16-bit configuration 2 (RGB565)
Rgb565config3 = 2
16-bit configuration 3 (RGB565)
Rgb666config1 = 3
18-bit configuration 1 (RGB666)
Rgb666config2 = 4
18-bit configuration 2 (RGB666)
Rgb888 = 5
24-bit (RGB888)
_RESERVED_6 = 6
_RESERVED_7 = 7
_RESERVED_8 = 8
_RESERVED_9 = 9
_RESERVED_a = 10
_RESERVED_b = 11
_RESERVED_c = 12
_RESERVED_d = 13
_RESERVED_e = 14
_RESERVED_f = 15
Implementations§
§impl ColorCoding
impl ColorCoding
pub const fn from_bits(val: u8) -> ColorCoding
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for ColorCoding
impl Clone for ColorCoding
§fn clone(&self) -> ColorCoding
fn clone(&self) -> ColorCoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColorCoding
impl Eq for ColorCoding
§impl From<ColorCoding> for u8
impl From<ColorCoding> for u8
§fn from(val: ColorCoding) -> u8
fn from(val: ColorCoding) -> u8
Converts to this type from the input type.
§impl From<u8> for ColorCoding
impl From<u8> for ColorCoding
§fn from(val: u8) -> ColorCoding
fn from(val: u8) -> ColorCoding
Converts to this type from the input type.
§impl Ord for ColorCoding
impl Ord for ColorCoding
§fn cmp(&self, other: &ColorCoding) -> Ordering
fn cmp(&self, other: &ColorCoding) -> Ordering
1.21.0 (const: unstable) · 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
§impl PartialEq for ColorCoding
impl PartialEq for ColorCoding
§impl PartialOrd for ColorCoding
impl PartialOrd for ColorCoding
impl StructuralPartialEq for ColorCoding
Auto Trait Implementations§
impl Freeze for ColorCoding
impl RefUnwindSafe for ColorCoding
impl Send for ColorCoding
impl Sync for ColorCoding
impl Unpin for ColorCoding
impl UnsafeUnpin for ColorCoding
impl UnwindSafe for ColorCoding
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