Skip to main content

DynKeyMap

Trait DynKeyMap 

Source
pub trait DynKeyMap<B: Backend + 'static> {
    // Required methods
    fn keybinds(&self) -> &'static [KeyBind<B>];
    fn handle(&mut self, event: &B::Event) -> bool;
}
Expand description

A dyn compatible equivalent to KeyMap

Required Methods§

Source

fn keybinds(&self) -> &'static [KeyBind<B>]

Source

fn handle(&mut self, event: &B::Event) -> bool

Implementors§

Source§

impl<B: Backend + 'static, T: KeyMap<B>> DynKeyMap<B> for T