Expand description
TDDMSFile
represents all segments
of a TDMS file in the order in which they were read.
Fields§
§segments: Vec<Segment>
Implementations§
source§impl<'a> TDMSFile<'a>
impl<'a> TDMSFile<'a>
sourcepub fn from_path(path: &'a Path) -> Result<Self, TdmsError>
pub fn from_path(path: &'a Path) -> Result<Self, TdmsError>
from_path
expects a path and whether or not to read only the metadata of each segment vs
the entire file into working memory.
pub fn channels(&self, group_path: &str) -> IndexMap<String, &Channel>
sourcepub fn channel_data_double_float(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, f64, File>, TdmsError>
pub fn channel_data_double_float(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, f64, File>, TdmsError>
returns a channel who’s type is the native rust type equivalent to TdmsDoubleFloat, in this
case f64
- the channel implements Iterator and using said iterator will let you move through
the channel’s raw data if any exists
pub fn channel_data_single_float(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, f32, File>, TdmsError>
pub fn channel_data_complex_double_float(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, f64, File>, TdmsError>
pub fn channel_data_complex_single_float(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, f32, File>, TdmsError>
pub fn channel_data_double_float_unit(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, f64, File>, TdmsError>
pub fn channel_data_single_float_unit(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, f32, File>, TdmsError>
pub fn channel_data_i8(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, i8, File>, TdmsError>
pub fn channel_data_i16(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, i16, File>, TdmsError>
pub fn channel_data_i32(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, i32, File>, TdmsError>
pub fn channel_data_i64(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, i64, File>, TdmsError>
pub fn channel_data_u8(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, u8, File>, TdmsError>
pub fn channel_data_u16(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, u16, File>, TdmsError>
pub fn channel_data_u32(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, u32, File>, TdmsError>
pub fn channel_data_u64(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, u64, File>, TdmsError>
pub fn channel_data_bool(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, bool, File>, TdmsError>
pub fn channel_data_timestamp(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, TdmsTimestamp, File>, TdmsError>
pub fn channel_data_string(
&self,
channel: &'a Channel
) -> Result<ChannelDataIter<'_, String, File>, TdmsError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TDMSFile<'a>
impl<'a> Send for TDMSFile<'a>
impl<'a> Sync for TDMSFile<'a>
impl<'a> Unpin for TDMSFile<'a>
impl<'a> UnwindSafe for TDMSFile<'a>
Blanket Implementations§
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
OverflowingCasts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
UnwrappedCasts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
WrappingCasts the value.