#[non_exhaustive]pub enum ZeroPixelLocation {
UpperLeft,
UpperRight,
LowerLeft,
LowerRight,
}Expand description
Location of the zero pixel (the upper-left pixel in the framebuffer), decoded from Display Device Data Block (0x0C) byte 7 bits 5:4.
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.
UpperLeft
Zero pixel is at the upper-left corner (0).
UpperRight
Zero pixel is at the upper-right corner (1).
LowerLeft
Zero pixel is at the lower-left corner (2).
LowerRight
Zero pixel is at the lower-right corner (3).
Implementations§
Source§impl ZeroPixelLocation
impl ZeroPixelLocation
Sourcepub fn from_bits(bits: u8) -> ZeroPixelLocation
pub fn from_bits(bits: u8) -> ZeroPixelLocation
Decodes the zero pixel location from a 2-bit value (bits 5:4 of byte 7).
Trait Implementations§
Source§impl Clone for ZeroPixelLocation
impl Clone for ZeroPixelLocation
Source§fn clone(&self) -> ZeroPixelLocation
fn clone(&self) -> ZeroPixelLocation
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 ZeroPixelLocation
Source§impl Debug for ZeroPixelLocation
impl Debug for ZeroPixelLocation
impl Eq for ZeroPixelLocation
Source§impl PartialEq for ZeroPixelLocation
impl PartialEq for ZeroPixelLocation
impl StructuralPartialEq for ZeroPixelLocation
Auto Trait Implementations§
impl Freeze for ZeroPixelLocation
impl RefUnwindSafe for ZeroPixelLocation
impl Send for ZeroPixelLocation
impl Sync for ZeroPixelLocation
impl Unpin for ZeroPixelLocation
impl UnsafeUnpin for ZeroPixelLocation
impl UnwindSafe for ZeroPixelLocation
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