Struct xdrk::ChannelData
source · [−]pub struct ChannelData { /* private fields */ }
Expand description
Holds data of a channel retrieved from a file.
Implementations
sourceimpl ChannelData
impl ChannelData
sourceimpl ChannelData
impl ChannelData
pub fn timestamps_mut(&mut self) -> &mut Vec<f64>
pub fn samples_mut(&mut self) -> &mut Vec<f64>
sourceimpl ChannelData
impl ChannelData
sourcepub fn allocate(count: usize) -> (Vec<f64>, Vec<f64>)
pub fn allocate(count: usize) -> (Vec<f64>, Vec<f64>)
Helper function which allocates memory buffers in the required format.
sourcepub fn from_tsc(timestamps: Vec<f64>, samples: Vec<f64>, capacity: usize) -> Self
pub fn from_tsc(timestamps: Vec<f64>, samples: Vec<f64>, capacity: usize) -> Self
Creates a new ChannelData
object from buffers t
(timestamps), s
(samples) and a given buffer size c
(capacity).
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations
sourceimpl Clone for ChannelData
impl Clone for ChannelData
sourcefn clone(&self) -> ChannelData
fn clone(&self) -> ChannelData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ChannelData
impl Debug for ChannelData
sourceimpl Default for ChannelData
impl Default for ChannelData
sourcefn default() -> ChannelData
fn default() -> ChannelData
Returns the “default value” for a type. Read more
sourceimpl IntoIterator for ChannelData
impl IntoIterator for ChannelData
sourceimpl PartialEq<ChannelData> for ChannelData
impl PartialEq<ChannelData> for ChannelData
sourcefn eq(&self, other: &ChannelData) -> bool
fn eq(&self, other: &ChannelData) -> bool
impl StructuralPartialEq for ChannelData
Auto Trait Implementations
impl RefUnwindSafe for ChannelData
impl Send for ChannelData
impl Sync for ChannelData
impl Unpin for ChannelData
impl UnwindSafe for ChannelData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more