pub enum OrientationLock {
Auto,
Portrait,
Landscape,
}Expand description
Mobile and tablet screen orientation constraint.
Variants§
Auto
Follow device sensor / user multitasking orientation.
Portrait
Lock to portrait orientation.
Landscape
Lock to landscape orientation.
Trait Implementations§
Source§impl Clone for OrientationLock
impl Clone for OrientationLock
impl Copy for OrientationLock
Source§impl Debug for OrientationLock
impl Debug for OrientationLock
Source§impl Default for OrientationLock
impl Default for OrientationLock
impl Eq for OrientationLock
Source§impl Hash for OrientationLock
impl Hash for OrientationLock
Source§impl Ord for OrientationLock
impl Ord for OrientationLock
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OrientationLock
impl PartialEq for OrientationLock
Source§impl PartialOrd for OrientationLock
impl PartialOrd for OrientationLock
impl StructuralPartialEq for OrientationLock
Auto Trait Implementations§
impl Forget for OrientationLock
impl Freeze for OrientationLock
impl Move for OrientationLock
impl RefUnwindSafe for OrientationLock
impl Send for OrientationLock
impl Sync for OrientationLock
impl Unpin for OrientationLock
impl UnsafeUnpin for OrientationLock
impl UnwindSafe for OrientationLock
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