pub enum PressedInput<PK> {
Key {
pressed_key: PK,
},
Virtual {
key_code: u8,
},
}
Expand description
State resulting from Event.
Variants§
Implementations§
Source§impl<PK> PressedInput<PK>
impl<PK> PressedInput<PK>
Sourcepub fn new_pressed_key(pressed_key: PK) -> Self
pub fn new_pressed_key(pressed_key: PK) -> Self
Constructor for a PressedInput::Key.
Trait Implementations§
Source§impl<PK: Clone> Clone for PressedInput<PK>
impl<PK: Clone> Clone for PressedInput<PK>
Source§fn clone(&self) -> PressedInput<PK>
fn clone(&self) -> PressedInput<PK>
Returns a copy 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<PK: Debug> Debug for PressedInput<PK>
impl<PK: Debug> Debug for PressedInput<PK>
impl<PK: Copy> Copy for PressedInput<PK>
Auto Trait Implementations§
impl<PK> Freeze for PressedInput<PK>where
PK: Freeze,
impl<PK> RefUnwindSafe for PressedInput<PK>where
PK: RefUnwindSafe,
impl<PK> Send for PressedInput<PK>where
PK: Send,
impl<PK> Sync for PressedInput<PK>where
PK: Sync,
impl<PK> Unpin for PressedInput<PK>where
PK: Unpin,
impl<PK> UnwindSafe for PressedInput<PK>where
PK: UnwindSafe,
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