pub enum InterfaceOrientation {
LandscapeLeft,
LandscapeRight,
PortraitUpsideDown,
Portrait,
}Expand description
SwiftUI.InterfaceOrientation.
The cases are the type’s documented static properties, each read through its own getter. Types carry further statics that are not API; a value the reference cannot spell cannot be compared, so those are left out.
Variants§
Trait Implementations§
Source§impl Clone for InterfaceOrientation
impl Clone for InterfaceOrientation
impl Copy for InterfaceOrientation
Source§impl Debug for InterfaceOrientation
impl Debug for InterfaceOrientation
impl Eq for InterfaceOrientation
Source§impl From<LandscapeLeft> for InterfaceOrientation
impl From<LandscapeLeft> for InterfaceOrientation
Source§fn from(_: LandscapeLeft) -> Self
fn from(_: LandscapeLeft) -> Self
Converts to this type from the input type.
Source§impl From<LandscapeRight> for InterfaceOrientation
impl From<LandscapeRight> for InterfaceOrientation
Source§fn from(_: LandscapeRight) -> Self
fn from(_: LandscapeRight) -> Self
Converts to this type from the input type.
Source§impl From<Portrait> for InterfaceOrientation
impl From<Portrait> for InterfaceOrientation
Source§impl From<PortraitUpsideDown> for InterfaceOrientation
impl From<PortraitUpsideDown> for InterfaceOrientation
Source§fn from(_: PortraitUpsideDown) -> Self
fn from(_: PortraitUpsideDown) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InterfaceOrientation
impl PartialEq for InterfaceOrientation
impl StructuralPartialEq for InterfaceOrientation
Auto Trait Implementations§
impl Freeze for InterfaceOrientation
impl RefUnwindSafe for InterfaceOrientation
impl Send for InterfaceOrientation
impl Sync for InterfaceOrientation
impl Unpin for InterfaceOrientation
impl UnsafeUnpin for InterfaceOrientation
impl UnwindSafe for InterfaceOrientation
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