#[non_exhaustive]pub enum ScanOrientation {
LeftRightTopBottom,
RightLeftTopBottom,
TopBottomRightLeft,
BottomTopRightLeft,
RightLeftBottomTop,
LeftRightBottomTop,
BottomTopLeftRight,
TopBottomLeftRight,
}Expand description
Pixel scan orientation, decoded from bits 2:0 of byte 11 of DisplayID 2.x block 0x21.
Each variant names the fast (pixel) axis followed by the slow (line) axis. For example,
LeftRightTopBottom means pixels are painted left-to-right
within a line and lines advance top-to-bottom — the conventional raster order.
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.
LeftRightTopBottom
Left-to-right, top-to-bottom (0b000). Default raster order.
RightLeftTopBottom
Right-to-left, top-to-bottom (0b001).
TopBottomRightLeft
Top-to-bottom, right-to-left (0b010).
BottomTopRightLeft
Bottom-to-top, right-to-left (0b011).
RightLeftBottomTop
Right-to-left, bottom-to-top (0b100).
LeftRightBottomTop
Left-to-right, bottom-to-top (0b101).
BottomTopLeftRight
Bottom-to-top, left-to-right (0b110).
TopBottomLeftRight
Top-to-bottom, left-to-right (0b111).
Implementations§
Trait Implementations§
Source§impl Clone for ScanOrientation
impl Clone for ScanOrientation
Source§fn clone(&self) -> ScanOrientation
fn clone(&self) -> ScanOrientation
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 moreSource§impl Debug for ScanOrientation
impl Debug for ScanOrientation
Source§impl Default for ScanOrientation
impl Default for ScanOrientation
Source§fn default() -> ScanOrientation
fn default() -> ScanOrientation
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScanOrientation
impl PartialEq for ScanOrientation
Source§fn eq(&self, other: &ScanOrientation) -> bool
fn eq(&self, other: &ScanOrientation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ScanOrientation
impl Eq for ScanOrientation
impl StructuralPartialEq for ScanOrientation
Auto Trait Implementations§
impl Freeze for ScanOrientation
impl RefUnwindSafe for ScanOrientation
impl Send for ScanOrientation
impl Sync for ScanOrientation
impl Unpin for ScanOrientation
impl UnsafeUnpin for ScanOrientation
impl UnwindSafe for ScanOrientation
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