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