pub struct KeyInfo { /* private fields */ }
Implementations§
source§impl KeyInfo
impl KeyInfo
sourcepub fn new(
class_id: InputClass,
len: u8,
min_keycode: KeyCode,
max_keycode: KeyCode,
num_keys: u16,
) -> KeyInfo
pub fn new( class_id: InputClass, len: u8, min_keycode: KeyCode, max_keycode: KeyCode, num_keys: u16, ) -> KeyInfo
Construct a new KeyInfo.
pub fn class_id(&self) -> InputClass
pub fn len(&self) -> u8
pub fn min_keycode(&self) -> KeyCode
pub fn max_keycode(&self) -> KeyCode
pub fn num_keys(&self) -> u16
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyInfo
impl RefUnwindSafe for KeyInfo
impl Send for KeyInfo
impl Sync for KeyInfo
impl Unpin for KeyInfo
impl UnwindSafe for KeyInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)