[−][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)?;
Methods
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
impl Clone for MatFile[src]
fn clone(&self) -> MatFile[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for MatFile[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,