pub struct TdmsChannel<'a> { /* private fields */ }Expand description
A channel within a TDMS group.
Implementations§
Source§impl<'a> TdmsChannel<'a>
impl<'a> TdmsChannel<'a>
Sourcepub fn property(&self, name: &str) -> Option<&PropertyValue>
pub fn property(&self, name: &str) -> Option<&PropertyValue>
Look up a channel-level property by name.
Sourcepub fn properties(&self) -> impl Iterator<Item = (&str, &PropertyValue)>
pub fn properties(&self) -> impl Iterator<Item = (&str, &PropertyValue)>
Iterate over all channel-level properties.
Sourcepub fn read<T: Pod>(&self, range: Range<usize>, out: &mut [T]) -> Result<usize>
pub fn read<T: Pod>(&self, range: Range<usize>, out: &mut [T]) -> Result<usize>
Read a range of values into the provided output buffer.
The element type T must match the TDMS channel element size.
Sourcepub fn timestamps(&self) -> Option<TimestampIterator>
pub fn timestamps(&self) -> Option<TimestampIterator>
If the waveform timing properties are present, return an iterator of timestamps (in seconds) corresponding to each sample.
Auto Trait Implementations§
impl<'a> Freeze for TdmsChannel<'a>
impl<'a> RefUnwindSafe for TdmsChannel<'a>
impl<'a> Send for TdmsChannel<'a>
impl<'a> Sync for TdmsChannel<'a>
impl<'a> Unpin for TdmsChannel<'a>
impl<'a> UnwindSafe for TdmsChannel<'a>
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