pub fn on_change<F: 'static + Fn(&mut Cursive, bool)>(
        self, on_change: F
    ) -> Self {
        self.with(|s| s.set_on_change(on_change))
    }
/// Sets a callback to be used when the state changes.
///
/// Chainable variant.
Sets a callback to be used when the state changes.
Chainable variant.
Sets a callback to be used when the state changes . Chainable variant .
pub fn on_change<F: 'static + Fn(&mut Cursive, bool)>(
        self, on_change: F
    ) -> Self {
        self.with(|s| s.set_on_change(on_change))
    }
pub fn on_change < F : ' static + Fn ( & mut Cursive , bool ) > ( self , on_change : F ) -> Self { self . with ( | s | s . set_on_change ( on_change ) ) }
Sets a callback to be used when the state changes.
Sets a callback to be used when the state changes .
self
on_change
F
self
on_change
F