#[non_exhaustive]#[repr(u8)]pub enum DisplayOrientation {
Auto = 0,
Portrait = 1,
Landscape = 2,
PortraitFlipped = 3,
LandscapeFlipped = 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.
Implementations§
Trait Implementations§
Source§impl Clone for DisplayOrientation
impl Clone for DisplayOrientation
Source§fn clone(&self) -> DisplayOrientation
fn clone(&self) -> DisplayOrientation
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 DisplayOrientation
impl Debug for DisplayOrientation
Source§impl Hash for DisplayOrientation
impl Hash for DisplayOrientation
Source§impl PartialEq for DisplayOrientation
impl PartialEq for DisplayOrientation
Source§fn eq(&self, other: &DisplayOrientation) -> bool
fn eq(&self, other: &DisplayOrientation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DisplayOrientation
impl Eq for DisplayOrientation
impl StructuralPartialEq for DisplayOrientation
Auto Trait Implementations§
impl Freeze for DisplayOrientation
impl RefUnwindSafe for DisplayOrientation
impl Send for DisplayOrientation
impl Sync for DisplayOrientation
impl Unpin for DisplayOrientation
impl UnsafeUnpin for DisplayOrientation
impl UnwindSafe for DisplayOrientation
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