Trait yata::core::Sequence [−][src]
pub trait Sequence<T>: AsRef<[T]> { fn validate(&self) -> bool; fn call<'a, M>(&self, method: M) -> Vec<M::Output>
where
M: Method<'a, Input = T> + BorrowMut<M> + 'a; fn apply<'a, M>(&'a mut self, method: M)
where
M: Method<'a, Input = T, Output = T> + BorrowMut<M> + 'a,
Self: AsMut<[T]>,
T: Copy, { ... } fn get_initial_value(&self) -> Option<&T> { ... } fn collapse_timeframe(&self, size: usize, continuous: bool) -> Vec<Candle>
where
T: OHLCV, { ... } }
Expand description
Implements some methods for sequence manipulations.
Required methods
Provided methods
Applies Method
on the slice in-place.
fn get_initial_value(&self) -> Option<&T>
[src]
fn get_initial_value(&self) -> Option<&T>
[src]Returns a reference to the first value in the sequence or None
if it’s empty.
Converts timeframe of the series
See also CollapseTimeframe
method.