1 2 3 4 5 6 7 8 9 10
use num_traits::Float; use std::fmt::Debug; pub trait Slider<F>: Debug where F: Float, { fn last(&self) -> Option<F>; fn push(&mut self, item: F); }