Struct KeyMapping
pub struct KeyMapping {
pub down: bool,
pub label: Text,
}Expand description
A vanilla key mapping as the client holds it (ClientHost::mapping).
Fields§
§down: boolWhether it is held (KeyMapping.isDown).
label: TextThe name of the key it is bound to, as Controls shows it (KeyMapping.getTranslatedKeyMessage).
Trait Implementations§
§impl Clone for KeyMapping
impl Clone for KeyMapping
§fn clone(&self) -> KeyMapping
fn clone(&self) -> KeyMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for KeyMapping
impl Debug for KeyMapping
Auto Trait Implementations§
impl Freeze for KeyMapping
impl RefUnwindSafe for KeyMapping
impl Send for KeyMapping
impl Sync for KeyMapping
impl Unpin for KeyMapping
impl UnsafeUnpin for KeyMapping
impl UnwindSafe for KeyMapping
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