pub struct IndicatorValues { /* private fields */ }Expand description
Implementations§
Source§impl IndicatorValues
impl IndicatorValues
Sourcepub fn line(&self, line: usize) -> &[f64]
pub fn line(&self, line: usize) -> &[f64]
A complete output line, or an empty slice if that line has no values yet.
Sourcepub fn value(&self, line: usize, bar: usize) -> Option<f64>
pub fn value(&self, line: usize, bar: usize) -> Option<f64>
A finite value at a zero-based line and source bar, or None when missing.
Sourcepub fn to_rows(&self) -> Vec<IndicatorValue>
pub fn to_rows(&self) -> Vec<IndicatorValue>
Export rows for callers that need the legacy owned row format. This allocates; rendering and numerical consumers should read the columns directly.
Sourcepub fn push_lines(&mut self, values: &[f64])
pub fn push_lines(&mut self, values: &[f64])
Append one bar’s line values, using NaN for missing or non-finite entries.
Trait Implementations§
Source§impl Clone for IndicatorValues
impl Clone for IndicatorValues
Source§fn clone(&self) -> IndicatorValues
fn clone(&self) -> IndicatorValues
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndicatorValues
impl Debug for IndicatorValues
Source§impl Default for IndicatorValues
impl Default for IndicatorValues
Source§fn default() -> IndicatorValues
fn default() -> IndicatorValues
Returns the “default value” for a type. Read more
Source§impl From<Vec<IndicatorValue>> for IndicatorValues
impl From<Vec<IndicatorValue>> for IndicatorValues
Source§fn from(values: Vec<IndicatorValue>) -> Self
fn from(values: Vec<IndicatorValue>) -> Self
Converts to this type from the input type.
Source§impl FromIterator<IndicatorValue> for IndicatorValues
impl FromIterator<IndicatorValue> for IndicatorValues
Source§fn from_iter<T: IntoIterator<Item = IndicatorValue>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = IndicatorValue>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl Freeze for IndicatorValues
impl RefUnwindSafe for IndicatorValues
impl Send for IndicatorValues
impl Sync for IndicatorValues
impl Unpin for IndicatorValues
impl UnsafeUnpin for IndicatorValues
impl UnwindSafe for IndicatorValues
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more