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