pub enum ModKey {
Shift,
Control,
Menu,
Custom(u32),
}Expand description
A modifier key.
Variants§
Shift
SHIFT key.
Control
CTRL key.
Menu
ALT key.
Custom(u32)
Custom modifier key according to this list.
Implementations§
Source§impl ModKey
impl ModKey
Sourcepub fn try_from_raw(value: i32) -> Result<ModKey, TryFromRawError<i32>>
pub fn try_from_raw(value: i32) -> Result<ModKey, TryFromRawError<i32>>
Converts an integer as returned by the low-level API to a mod key.
Trait Implementations§
impl Copy for ModKey
impl Eq for ModKey
impl StructuralPartialEq for ModKey
Auto Trait Implementations§
impl Freeze for ModKey
impl RefUnwindSafe for ModKey
impl Send for ModKey
impl Sync for ModKey
impl Unpin for ModKey
impl UnwindSafe for ModKey
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