pub enum MatlabType {
}Expand description
Numeric types in MAT-files
Variants§
U8(Vec<u8>)
I8(Vec<i8>)
U16(Vec<u16>)
I16(Vec<i16>)
U32(Vec<u32>)
I32(Vec<i32>)
U64(Vec<u64>)
I64(Vec<i64>)
F32(Vec<f32>)
F64(Vec<f64>)
UTF8(Vec<char>)
UTF16(Vec<char>)
BOOL(Vec<bool>)
Implementations§
Source§impl MatlabType
impl MatlabType
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new empty MatlabType.
pub fn inner<T: MatlabTypeMarker>(self) -> Option<Vec<T>>
pub fn is_empty(&self) -> bool
pub fn get<T: FromMatlabType>(&self, index: usize) -> Option<&T>
pub fn clone_at_index(&self, index: usize) -> MatlabType
pub fn row_vec_to_colmaj( value: MatlabType, n_rows: usize, n_cols: usize, ) -> MatlabType
pub fn to_sparse( self, n_rows: usize, n_cols: usize, ) -> (Vec<usize>, Vec<usize>, Self)
pub fn print( &self, f: &mut Formatter<'_>, index: usize, cmp: bool, max_width: usize, ) -> Result
pub fn max_width(&self) -> usize
pub fn extend(&mut self, other: MatlabType)
pub fn join(vec: Vec<Self>) -> Option<Self>
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Clone for MatlabType
impl Clone for MatlabType
Source§fn clone(&self) -> MatlabType
fn clone(&self) -> MatlabType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatlabType
impl Debug for MatlabType
Source§impl Default for MatlabType
impl Default for MatlabType
Source§impl From<&str> for MatlabType
impl From<&str> for MatlabType
Source§impl<T: MatlabTypeMarker> From<T> for MatlabType
impl<T: MatlabTypeMarker> From<T> for MatlabType
Source§impl<T: MatlabTypeMarker> From<Vec<T>> for MatlabType
impl<T: MatlabTypeMarker> From<Vec<T>> for MatlabType
Source§impl PartialEq for MatlabType
impl PartialEq for MatlabType
impl StructuralPartialEq for MatlabType
Auto Trait Implementations§
impl Freeze for MatlabType
impl RefUnwindSafe for MatlabType
impl Send for MatlabType
impl Sync for MatlabType
impl Unpin for MatlabType
impl UnwindSafe for MatlabType
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