pub struct MultiChannelSeries {
pub channels: Vec<Channel>,
pub metadata: HashMap<String, String>,
}Expand description
Multi-channel time series container.
Fields§
§channels: Vec<Channel>Ordered channel list.
metadata: HashMap<String, String>Optional metadata key-value store.
Implementations§
Source§impl MultiChannelSeries
impl MultiChannelSeries
Sourcepub fn add_channel(&mut self, ch: Channel) -> usize
pub fn add_channel(&mut self, ch: Channel) -> usize
Add a channel and return its index.
Sourcepub fn num_channels(&self) -> usize
pub fn num_channels(&self) -> usize
Number of channels.
Sourcepub fn channel_mut(&mut self, idx: usize) -> Option<&mut Channel>
pub fn channel_mut(&mut self, idx: usize) -> Option<&mut Channel>
Mutable borrow channel by index.
Sourcepub fn channel_by_name(&self, name: &str) -> Option<&Channel>
pub fn channel_by_name(&self, name: &str) -> Option<&Channel>
Find a channel by name.
Trait Implementations§
Source§impl Clone for MultiChannelSeries
impl Clone for MultiChannelSeries
Source§fn clone(&self) -> MultiChannelSeries
fn clone(&self) -> MultiChannelSeries
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 MultiChannelSeries
impl Debug for MultiChannelSeries
Source§impl Default for MultiChannelSeries
impl Default for MultiChannelSeries
Source§fn default() -> MultiChannelSeries
fn default() -> MultiChannelSeries
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultiChannelSeries
impl RefUnwindSafe for MultiChannelSeries
impl Send for MultiChannelSeries
impl Sync for MultiChannelSeries
impl Unpin for MultiChannelSeries
impl UnsafeUnpin for MultiChannelSeries
impl UnwindSafe for MultiChannelSeries
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.