pub struct Series { /* private fields */ }Expand description
A time-indexed series of values.
Represents the output of an indicator computation. Each value is paired with its timestamp.
Implementations§
Source§impl Series
impl Series
Sourcepub fn new(values: Vec<(DateTime<Utc>, Decimal)>) -> Self
pub fn new(values: Vec<(DateTime<Utc>, Decimal)>) -> Self
Create a new series from timestamped values.
Sourcepub fn decimal_values(&self) -> Vec<Decimal>
pub fn decimal_values(&self) -> Vec<Decimal>
Get just the decimal values without timestamps.
Trait Implementations§
Source§impl<'a> IntoIterator for &'a Series
impl<'a> IntoIterator for &'a Series
Source§impl IntoIterator for Series
impl IntoIterator for Series
impl Eq for Series
impl StructuralPartialEq for Series
Auto Trait Implementations§
impl Freeze for Series
impl RefUnwindSafe for Series
impl Send for Series
impl Sync for Series
impl Unpin for Series
impl UnsafeUnpin for Series
impl UnwindSafe for Series
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more