pub trait View: Send + Sync { fn update(&mut self, val: f64); fn last(&self) -> f64; }
The most important Trait, defining methods which each sliding feature needs to implement
Update the state with a new value
Return the last value