Enum WindowOrientation
#[repr(i32)]pub enum WindowOrientation {
LandscapeOrientation = 0,
PortraitOrientation = 1,
}Expand description
List of window orientations.
Variants§
Implementations§
§impl WindowOrientation
impl WindowOrientation
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> WindowOrientation
Trait Implementations§
§impl Clone for WindowOrientation
impl Clone for WindowOrientation
§fn clone(&self) -> WindowOrientation
fn clone(&self) -> WindowOrientation
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 more§impl Debug for WindowOrientation
impl Debug for WindowOrientation
§impl Display for WindowOrientation
impl Display for WindowOrientation
§impl PartialEq for WindowOrientation
impl PartialEq for WindowOrientation
§impl VariantConstraint for WindowOrientation
impl VariantConstraint for WindowOrientation
§type DataArg<'a> = WindowOrientation
type DataArg<'a> = WindowOrientation
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = WindowOrientation
type RetArg = WindowOrientation
§fn as_arg(&self) -> <WindowOrientation as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <WindowOrientation as VariantConstraint>::DataArg<'_>
impl Copy for WindowOrientation
impl Eq for WindowOrientation
impl PropertyTypeConstraint for WindowOrientation
impl StructuralPartialEq for WindowOrientation
Auto Trait Implementations§
impl Freeze for WindowOrientation
impl RefUnwindSafe for WindowOrientation
impl Send for WindowOrientation
impl Sync for WindowOrientation
impl Unpin for WindowOrientation
impl UnwindSafe for WindowOrientation
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