pub struct MDF { /* private fields */ }Expand description
High level representation of an MDF file.
The struct stores the memory mapped file internally and lazily exposes
ChannelGroup wrappers for easy inspection.
Implementations§
Source§impl MDF
impl MDF
Sourcepub fn from_file(path: &str) -> Result<Self>
pub fn from_file(path: &str) -> Result<Self>
Parse an MDF4 file from disk.
§Arguments
path- Path to the.mf4file.
§Returns
A new MDF on success or crate::Error on failure.
Sourcepub fn raw(&self) -> &MdfFile
pub fn raw(&self) -> &MdfFile
Access the raw parsed MDF file structure.
Useful for debugging or advanced use cases.
Sourcepub fn channel_groups(&self) -> Vec<ChannelGroup<'_>>
pub fn channel_groups(&self) -> Vec<ChannelGroup<'_>>
Retrieve channel groups contained in the file.
Each ChannelGroup is created lazily and does not decode any samples.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MDF
impl RefUnwindSafe for MDF
impl Send for MDF
impl Sync for MDF
impl Unpin for MDF
impl UnwindSafe for MDF
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