pub enum MatType {
Show 17 variants
Double(ArrayD<f64>),
Single(ArrayD<f32>),
Int8(ArrayD<i8>),
Int16(ArrayD<i16>),
Int32(ArrayD<i32>),
Int64(ArrayD<i64>),
UInt8(ArrayD<u8>),
UInt16(ArrayD<u16>),
UInt32(ArrayD<u32>),
UInt64(ArrayD<u64>),
Logical(ArrayD<bool>),
Char(String),
Cell(Vec<MatType>),
Struct(HashMap<String, MatType>),
SparseDouble(SparseMatrix<f64>),
SparseSingle(SparseMatrix<f32>),
SparseLogical(SparseMatrix<bool>),
}Expand description
MATLAB data types
Variants§
Double(ArrayD<f64>)
Double-precision floating point
Single(ArrayD<f32>)
Single-precision floating point
Int8(ArrayD<i8>)
8-bit signed integer
Int16(ArrayD<i16>)
16-bit signed integer
Int32(ArrayD<i32>)
32-bit signed integer
Int64(ArrayD<i64>)
64-bit signed integer
UInt8(ArrayD<u8>)
8-bit unsigned integer
UInt16(ArrayD<u16>)
16-bit unsigned integer
UInt32(ArrayD<u32>)
32-bit unsigned integer
UInt64(ArrayD<u64>)
64-bit unsigned integer
Logical(ArrayD<bool>)
Logical/boolean
Char(String)
Character array
Cell(Vec<MatType>)
Cell array
Struct(HashMap<String, MatType>)
Structure
SparseDouble(SparseMatrix<f64>)
Sparse double matrix
SparseSingle(SparseMatrix<f32>)
Sparse single matrix
SparseLogical(SparseMatrix<bool>)
Sparse logical matrix
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatType
impl RefUnwindSafe for MatType
impl Send for MatType
impl Sync for MatType
impl Unpin for MatType
impl UnwindSafe for MatType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.