[−][src]Struct matfile::MatFile
MatFile is a collection of named arrays.
You can load a ".mat" file from disk like this:
let file = std::fs::File::open("tests/double.mat")?; let mat_file = matfile::MatFile::parse(file)?;
Implementations
impl MatFile
[src]
pub fn parse<R: Read>(reader: R) -> Result<Self, Error>
[src]
Tries to parse a byte sequence as a ".mat" file.
pub fn arrays(&self) -> &Vec<Array>
[src]
List of all arrays in this .mat file.
When parsing a .mat file all arrays of unsupported type (currently all non-numerical and sparse arrays) will be ignored and will thus not be part of this list.
pub fn find_by_name<'me>(&'me self, name: &str) -> Option<&'me Array>
[src]
Returns an array with the given name if it exists. Case sensitive.
When parsing a .mat file all arrays of unsupported type (currently all non-numerical and sparse arrays) will be ignored and will thus not be returned by this function.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MatFile
impl Send for MatFile
impl Sync for MatFile
impl Unpin for MatFile
impl UnwindSafe for MatFile
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,