pub struct PressedKeyState;
Expand description
Unit-like struct for crate::key::PressedKeyState. (crate::key::keyboard pressed keys don’t have state).
Implementations§
Source§impl PressedKeyState
impl PressedKeyState
Sourcepub fn key_output(&self, key: &Key) -> KeyOutputState
pub fn key_output(&self, key: &Key) -> KeyOutputState
Keyboard key always has a key_output.
Trait Implementations§
Source§impl Clone for PressedKeyState
impl Clone for PressedKeyState
Source§fn clone(&self) -> PressedKeyState
fn clone(&self) -> PressedKeyState
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 Debug for PressedKeyState
impl Debug for PressedKeyState
Source§impl From<PressedKeyState> for BasePressedKeyState
impl From<PressedKeyState> for BasePressedKeyState
Source§fn from(pks: PressedKeyState) -> Self
fn from(pks: PressedKeyState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PressedKeyState
impl PartialEq for PressedKeyState
impl Copy for PressedKeyState
impl StructuralPartialEq for PressedKeyState
Auto Trait Implementations§
impl Freeze for PressedKeyState
impl RefUnwindSafe for PressedKeyState
impl Send for PressedKeyState
impl Sync for PressedKeyState
impl Unpin for PressedKeyState
impl UnwindSafe for PressedKeyState
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