#[non_exhaustive]pub enum SubpixelLayout {
NotDefined,
RgbVertical,
BgrVertical,
RgbHorizontal,
BgrHorizontal,
QuadRgbg,
QuadBgrg,
DeltaRgb,
DeltaBgr,
Unknown(u8),
}Expand description
Sub-pixel layout, decoded from Display Device Data Block (0x0C) byte 8.
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.
NotDefined
Sub-pixel arrangement not defined (0x00).
RgbVertical
RGB vertical stripes (0x01).
BgrVertical
BGR vertical stripes (0x02).
RgbHorizontal
RGB horizontal stripes (0x03).
BgrHorizontal
BGR horizontal stripes (0x04).
QuadRgbg
Quad arrangement: RGBG (0x05).
QuadBgrg
Quad arrangement: BGRG (0x06).
DeltaRgb
Delta (triangular) RGB arrangement (0x07).
DeltaBgr
Delta (triangular) BGR arrangement (0x08).
Unknown(u8)
Reserved or proprietary layout (0x09–0xFF).
Implementations§
Trait Implementations§
Source§impl Clone for SubpixelLayout
impl Clone for SubpixelLayout
Source§fn clone(&self) -> SubpixelLayout
fn clone(&self) -> SubpixelLayout
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 SubpixelLayout
impl Debug for SubpixelLayout
Source§impl PartialEq for SubpixelLayout
impl PartialEq for SubpixelLayout
impl Copy for SubpixelLayout
impl Eq for SubpixelLayout
impl StructuralPartialEq for SubpixelLayout
Auto Trait Implementations§
impl Freeze for SubpixelLayout
impl RefUnwindSafe for SubpixelLayout
impl Send for SubpixelLayout
impl Sync for SubpixelLayout
impl Unpin for SubpixelLayout
impl UnsafeUnpin for SubpixelLayout
impl UnwindSafe for SubpixelLayout
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