Trait State
numeric_algs
pub trait State: Clone { type Derivative: StateDerivative; fn shift_in_place(&mut self, dir: &Self::Derivative, amount: f64); fn shift(&self, dir: &Self::Derivative, amount: f64) -> Self { ... } }
type Derivative: StateDerivative
fn shift_in_place(&mut self, dir: &Self::Derivative, amount: f64)
fn shift(&self, dir: &Self::Derivative, amount: f64) -> Self