pub struct TimeSeriesChannel<T> {
pub name: String,
pub timestamps: Vec<f64>,
pub values: Vec<T>,
}Expand description
One channel of an unevenly-sampled time series.
timestamps must be monotonically non-decreasing and aligned with values.
Fields§
§name: StringChannel display name (e.g. "engine_speed").
timestamps: Vec<f64>Timestamps in seconds from start (monotonic).
values: Vec<T>Sample values aligned with timestamps.
Implementations§
Source§impl<T> TimeSeriesChannel<T>
impl<T> TimeSeriesChannel<T>
Trait Implementations§
Source§impl<T: Clone> Clone for TimeSeriesChannel<T>
impl<T: Clone> Clone for TimeSeriesChannel<T>
Source§fn clone(&self) -> TimeSeriesChannel<T>
fn clone(&self) -> TimeSeriesChannel<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for TimeSeriesChannel<T>
impl<T> RefUnwindSafe for TimeSeriesChannel<T>where
T: RefUnwindSafe,
impl<T> Send for TimeSeriesChannel<T>where
T: Send,
impl<T> Sync for TimeSeriesChannel<T>where
T: Sync,
impl<T> Unpin for TimeSeriesChannel<T>where
T: Unpin,
impl<T> UnsafeUnpin for TimeSeriesChannel<T>
impl<T> UnwindSafe for TimeSeriesChannel<T>where
T: UnwindSafe,
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