1 2 3 4 5 6
use std::collections::HashMap; use crossterm::event::KeyEvent; pub struct KeyBinder { bindings: HashMap<KeyEvent, Box<dyn FnMut()>>, }