pub enum ModifierDirection {
Left,
Right,
Unknown,
}Expand description
Represents whether the modifier came from the left or right side of the keyboard, where applicable.
Variants§
Left
Modifier came from the left side of the keyboard.
Right
Modifier came from the right side of the keyboard.
Unknown
Direction is unknown or not applicable.
Trait Implementations§
Source§impl Clone for ModifierDirection
impl Clone for ModifierDirection
Source§fn clone(&self) -> ModifierDirection
fn clone(&self) -> ModifierDirection
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 moreSource§impl Debug for ModifierDirection
impl Debug for ModifierDirection
Source§impl<'de> Deserialize<'de> for ModifierDirection
impl<'de> Deserialize<'de> for ModifierDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ModifierDirection
impl Hash for ModifierDirection
Source§impl Ord for ModifierDirection
impl Ord for ModifierDirection
Source§fn cmp(&self, other: &ModifierDirection) -> Ordering
fn cmp(&self, other: &ModifierDirection) -> Ordering
1.21.0 · 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 ModifierDirection
impl PartialEq for ModifierDirection
Source§impl PartialOrd for ModifierDirection
impl PartialOrd for ModifierDirection
Source§impl Serialize for ModifierDirection
impl Serialize for ModifierDirection
impl Copy for ModifierDirection
impl Eq for ModifierDirection
impl StructuralPartialEq for ModifierDirection
Auto Trait Implementations§
impl Freeze for ModifierDirection
impl RefUnwindSafe for ModifierDirection
impl Send for ModifierDirection
impl Sync for ModifierDirection
impl Unpin for ModifierDirection
impl UnsafeUnpin for ModifierDirection
impl UnwindSafe for ModifierDirection
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