pub struct InputKey(/* private fields */);Expand description
Represents a key/modifier combination.
TODO: Is this a good idea? I did it to allow typing kbmod::CTRL | vk::A.
The reason it’s an awkward u32 and not a struct is to hopefully make ABIs easier later.
Of course you could just translate on the ABI boundary, but my hope is that this
design lets me realize some restrictions early on that I can’t foresee yet.
Trait Implementations§
Source§impl BitOr<InputKey> for InputKeyMod
impl BitOr<InputKey> for InputKeyMod
Source§impl BitOr<InputKeyMod> for InputKey
impl BitOr<InputKeyMod> for InputKey
impl Copy for InputKey
impl Eq for InputKey
impl StructuralPartialEq for InputKey
Auto Trait Implementations§
impl Freeze for InputKey
impl RefUnwindSafe for InputKey
impl Send for InputKey
impl Sync for InputKey
impl Unpin for InputKey
impl UnwindSafe for InputKey
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