1 2 3 4 5 6 7 8 9 10 11 12 13
pub mod command; mod keybind; pub use command::Command; pub use keybind::Keybind; pub trait Config { fn mapped_bindings(&self) -> Vec<Keybind>; } pub trait CommandAdapter { fn convert(&self) -> Vec<Box<dyn Command>>; }