pub struct MatFile { /* private fields */ }Expand description
MAT-file container
Stores MAT-file variables using a variable name as unique key.
Implementations§
Source§impl MatFile
impl MatFile
Sourcepub fn insert(&mut self, name: &str, value: MatVariable)
pub fn insert(&mut self, name: &str, value: MatVariable)
Insert a MatVariable called name.
A valid MATLAB variable
- has a length between 1 and 64 characters,
- starts with a ascii alphabetic character,
- contains only ascii alpha-numeric or underscore characters,
- does not match any reserved keyword.
See also here.
§Panics
Panics, if name does not meet the criteria for a valid MATLAB variable
name.
Sourcepub fn take(&mut self, name: &str) -> Option<MatVariable>
pub fn take(&mut self, name: &str) -> Option<MatVariable>
Take variable out of container.
Returns MatVariable stored under name. If not existing, returns None.
Sourcepub fn iter(&self) -> Iter<'_, String, MatVariable>
pub fn iter(&self) -> Iter<'_, String, MatVariable>
Return iterator over variables.
Sourcepub fn iter_mut(&mut self) -> IterMut<'_, String, MatVariable>
pub fn iter_mut(&mut self) -> IterMut<'_, String, MatVariable>
Return mutable iterator over variables.
Trait Implementations§
Source§impl IntoIterator for MatFile
impl IntoIterator for MatFile
Auto Trait Implementations§
impl Freeze for MatFile
impl RefUnwindSafe for MatFile
impl Send for MatFile
impl Sync for MatFile
impl Unpin for MatFile
impl UnwindSafe for MatFile
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