pub trait DataSeries {
type Item: DataPoint;
type Iter: Iterator<Item = Self::Item>;
// Required methods
fn iter(&self) -> Self::Iter;
fn len(&self) -> usize;
fn get(&self, index: usize) -> Option<Self::Item>;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn calculate_bounds(&self) -> DataResult<()> { ... }
}Expand description
Trait for data series that can be used in charts
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn calculate_bounds(&self) -> DataResult<()>
fn calculate_bounds(&self) -> DataResult<()>
Calculate the bounds of this data series
Implementors§
Source§impl<T, const N: usize> DataSeries for SlidingWindowSeries<T, N>
Available on crate feature animations only.
impl<T, const N: usize> DataSeries for SlidingWindowSeries<T, N>
Available on crate feature
animations only.