#[non_exhaustive]pub enum PhysicalOrientation {
Landscape,
Portrait,
NotDefined,
Undefined,
}Expand description
Physical mounting orientation of the panel, decoded from Display Device Data Block (0x0C) byte 7 bits 1:0.
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.
Landscape
Landscape — wider than tall (0).
Portrait
Portrait — taller than wide (1).
NotDefined
Orientation not defined; may be freely rotated (2).
Undefined
Undefined / reserved encoding (3).
Implementations§
Trait Implementations§
Source§impl Clone for PhysicalOrientation
impl Clone for PhysicalOrientation
Source§fn clone(&self) -> PhysicalOrientation
fn clone(&self) -> PhysicalOrientation
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 PhysicalOrientation
impl Debug for PhysicalOrientation
Source§impl PartialEq for PhysicalOrientation
impl PartialEq for PhysicalOrientation
impl Copy for PhysicalOrientation
impl Eq for PhysicalOrientation
impl StructuralPartialEq for PhysicalOrientation
Auto Trait Implementations§
impl Freeze for PhysicalOrientation
impl RefUnwindSafe for PhysicalOrientation
impl Send for PhysicalOrientation
impl Sync for PhysicalOrientation
impl Unpin for PhysicalOrientation
impl UnsafeUnpin for PhysicalOrientation
impl UnwindSafe for PhysicalOrientation
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