pub fn on_submit<F>(self, callback: F) -> Self
  where
    F: Fn(&mut Cursive) + 'static,
  {
    self.with(|v| v.set_on_submit(callback))
  }
/// Sets a callback to be called when `<Enter>` is pressed.
///
/// Chainable variant.
Sets a callback to be called when `` is pressed.
Chainable variant.
Sets a callback to be called when ` ` is pressed . Chainable variant .
pub fn on_submit<F>(self, callback: F) -> Self
  where
    F: Fn(&mut Cursive) + 'static,
  {
    self.with(|v| v.set_on_submit(callback))
  }
pub fn on_submit < F > ( self , callback : F ) -> Self where F : Fn ( & mut Cursive ) + ' static , { self . with ( | v | v . set_on_submit ( callback ) ) }
Sets a callback to be called when `<Enter>` is pressed.
Sets a callback to be called when ` <Enter > ` is pressed .
self
callback
F
self
callback
F