Trait ta::Next[][src]

pub trait Next<T> {
    type Output;
    fn next(&mut self, input: T) -> Self::Output;
}
Expand description

Consumes a data item of type T and returns Output.

Typically T can be f64 or a struct similar to DataItem, that implements traits necessary to calculate value of a particular indicator.

In most cases Output is f64, but sometimes it can be different. For example for MACD it is (f64, f64, f64) since MACD returns 3 values.

Associated Types

Required methods

Implementors