pub trait Enter { /// 调用键盘输入回调 fn emit_enter(&self, char: char, redraw: &mut bool); /// 设置回调函数 fn set_enter_callback(&self, func: T); }