pub struct Keypress {
pub key_code: u8,
}Expand description
keypress() object (Table 37): one key_code.
Fields§
§key_code: u8key_code (Table of key codes, p. 41).
Trait Implementations§
impl Copy for Keypress
impl Eq for Keypress
Source§impl Serialize for Keypress
impl Serialize for Keypress
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for Keypress
Auto Trait Implementations§
impl Freeze for Keypress
impl RefUnwindSafe for Keypress
impl Send for Keypress
impl Sync for Keypress
impl Unpin for Keypress
impl UnsafeUnpin for Keypress
impl UnwindSafe for Keypress
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