#[non_exhaustive]pub enum RotationCapability {
None,
Cw90,
Deg180,
Cw270,
}Expand description
Rotation capability, decoded from Display Device Data Block (0x0C) byte 7 bits 3:2.
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.
None
No display rotation supported (0).
Cw90
90° clockwise rotation supported (1).
Deg180
180° rotation supported (2).
Cw270
270° clockwise (90° counter-clockwise) rotation supported (3).
Implementations§
Trait Implementations§
Source§impl Clone for RotationCapability
impl Clone for RotationCapability
Source§fn clone(&self) -> RotationCapability
fn clone(&self) -> RotationCapability
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 RotationCapability
impl Debug for RotationCapability
Source§impl PartialEq for RotationCapability
impl PartialEq for RotationCapability
impl Copy for RotationCapability
impl Eq for RotationCapability
impl StructuralPartialEq for RotationCapability
Auto Trait Implementations§
impl Freeze for RotationCapability
impl RefUnwindSafe for RotationCapability
impl Send for RotationCapability
impl Sync for RotationCapability
impl Unpin for RotationCapability
impl UnsafeUnpin for RotationCapability
impl UnwindSafe for RotationCapability
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