pub fn on_enter<F>(mut self, callback: F) -> Self
    where
        F: Fn(&mut Cursive, usize) + 'static,
    {
        self.on_enter = Some(Rc::new(callback));
        self
    }
/// Sets a callback to be called when the <Enter> key is pressed.
Sets a callback to be called when the  key is pressed.
Sets a callback to be called when the key is pressed .
pub fn on_enter<F>(mut self, callback: F) -> Self
    where
        F: Fn(&mut Cursive, usize) + 'static,
    {
        self.on_enter = Some(Rc::new(callback));
        self
    }
pub fn on_enter < F > ( mut self , callback : F ) -> Self where F : Fn ( & mut Cursive , usize ) + ' static , { self . on_enter = Some ( Rc :: new ( callback ) ) ; self }
Sets a callback to be called when the <Enter> key is pressed.
Sets a callback to be called when the <Enter > key is pressed .
mut self
callback
F
mut self
callback
F