Enum kernel::hil::screen::ScreenPixelFormat
source · #[repr(usize)]pub enum ScreenPixelFormat {
Mono,
RGB_233,
RGB_565,
RGB_888,
ARGB_8888,
}
Variants§
Mono
Pixels encoded as 1-bit, used for monochromatic displays
RGB_233
Pixels encoded as 2-bit red channel, 3-bit green channel, 3-bit blue channel.
RGB_565
Pixels encoded as 5-bit red channel, 6-bit green channel, 5-bit blue channel.
RGB_888
Pixels encoded as 8-bit red channel, 8-bit green channel, 8-bit blue channel.
ARGB_8888
Pixels encoded as 8-bit alpha channel, 8-bit red channel, 8-bit green channel, 8-bit blue channel.
Implementations§
source§impl ScreenPixelFormat
impl ScreenPixelFormat
pub fn get_bits_per_pixel(&self) -> usize
Trait Implementations§
source§impl Clone for ScreenPixelFormat
impl Clone for ScreenPixelFormat
source§fn clone(&self) -> ScreenPixelFormat
fn clone(&self) -> ScreenPixelFormat
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 PartialEq<ScreenPixelFormat> for ScreenPixelFormat
impl PartialEq<ScreenPixelFormat> for ScreenPixelFormat
source§fn eq(&self, other: &ScreenPixelFormat) -> bool
fn eq(&self, other: &ScreenPixelFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScreenPixelFormat
impl StructuralPartialEq for ScreenPixelFormat
Auto Trait Implementations§
impl RefUnwindSafe for ScreenPixelFormat
impl Send for ScreenPixelFormat
impl Sync for ScreenPixelFormat
impl Unpin for ScreenPixelFormat
impl UnwindSafe for ScreenPixelFormat
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