pub struct KeyboardConfig {
pub bindings: HashMap<KeyTrigger, Action>,
}Expand description
The top-level [keyboard] table. Bindings are keyed by KeyTrigger.
Fields§
§bindings: HashMap<KeyTrigger, Action>Function-key trigger → action map for the remapper.
Trait Implementations§
Source§impl Clone for KeyboardConfig
impl Clone for KeyboardConfig
Source§fn clone(&self) -> KeyboardConfig
fn clone(&self) -> KeyboardConfig
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 moreSource§impl Debug for KeyboardConfig
impl Debug for KeyboardConfig
Source§impl Default for KeyboardConfig
impl Default for KeyboardConfig
Source§fn default() -> KeyboardConfig
fn default() -> KeyboardConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyboardConfig
impl<'de> Deserialize<'de> for KeyboardConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KeyboardConfig
impl RefUnwindSafe for KeyboardConfig
impl Send for KeyboardConfig
impl Sync for KeyboardConfig
impl Unpin for KeyboardConfig
impl UnsafeUnpin for KeyboardConfig
impl UnwindSafe for KeyboardConfig
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