use std::cell::Cell; pub trait Enter { /// 调用键盘输入回调 fn emit_enter(&self, char: char, redraw: &Cell); /// 设置回调函数 fn set_enter_callback) + 'static>(&self, func: T); }