#[repr(C)]pub enum Handedness {
RightHanded = 0,
LeftHanded = 1,
}Expand description
Which hand operates the device (see SystemStyle::handedness).
INDEPENDENT of text direction: an Arabic left-hander reads right-to-left but still reaches with the left hand, and a left-handed English user reads left-to-right. Deriving one from the other is a bug.
Variants§
RightHanded = 0
Primary touch controls on the right (the default).
LeftHanded = 1
Primary touch controls on the left.
Trait Implementations§
Source§impl Clone for Handedness
impl Clone for Handedness
Source§fn clone(&self) -> Handedness
fn clone(&self) -> Handedness
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 moreimpl Copy for Handedness
Source§impl Debug for Handedness
impl Debug for Handedness
Source§impl Default for Handedness
impl Default for Handedness
Source§fn default() -> Handedness
fn default() -> Handedness
Returns the “default value” for a type. Read more
impl Eq for Handedness
Source§impl Hash for Handedness
impl Hash for Handedness
Source§impl Ord for Handedness
impl Ord for Handedness
Source§fn cmp(&self, other: &Handedness) -> Ordering
fn cmp(&self, other: &Handedness) -> Ordering
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
Source§impl PartialEq for Handedness
impl PartialEq for Handedness
Source§impl PartialOrd for Handedness
impl PartialOrd for Handedness
impl StructuralPartialEq for Handedness
Auto Trait Implementations§
impl Freeze for Handedness
impl RefUnwindSafe for Handedness
impl Send for Handedness
impl Sync for Handedness
impl Unpin for Handedness
impl UnsafeUnpin for Handedness
impl UnwindSafe for Handedness
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