[][src]Struct matfile::MatFile

pub struct MatFile { /* fields omitted */ }

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

impl Clone for MatFile[src]

impl Debug for MatFile[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.