1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// Indicator traits // pub trait Reset { fn reset(&mut self); } pub trait Next<T> { type Output; fn next(&mut self, input: T) -> Self::Output; } // Bar traits // pub trait Open { fn open(&self) -> f64; } pub trait Close { fn close(&self) -> f64; }