pub struct Key {
pub code: KeyCode,
pub printable: char,
pub pressed: bool,
pub left_alt: bool,
pub left_ctrl: bool,
pub right_alt: bool,
pub right_ctrl: bool,
pub shift: bool,
pub alt: bool,
pub ctrl: bool,
/* private fields */
}
Fields§
§code: KeyCode
§printable: char
§pressed: bool
§left_alt: bool
§left_ctrl: bool
§right_alt: bool
§right_ctrl: bool
§shift: bool
§alt: bool
§ctrl: bool
Implementations§
Trait Implementations§
Source§impl From<TCOD_key_t> for Key
impl From<TCOD_key_t> for Key
Source§fn from(tcod_key: TCOD_key_t) -> Key
fn from(tcod_key: TCOD_key_t) -> Key
Converts to this type from the input type.
impl Copy for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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