Enum rustmex::mex::FromMatlabError
source · [−]#[non_exhaustive]
pub enum FromMatlabError {
BadClass,
BadComplexity,
BadSparsity,
Size,
}Expand description
Possible errors which can occur when converting an mxArray into a Rust type.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadClass
Returned when the type of the mxArray does not agree
BadComplexity
Returned when the complexity of the mxArray does not agree with the type
BadSparsity
Returned when the sparsity does not match the expected sparsity
Size
Returned when the size of the mxArray does not match
Trait Implementations
sourceimpl Clone for FromMatlabError
impl Clone for FromMatlabError
sourcefn clone(&self) -> FromMatlabError
fn clone(&self) -> FromMatlabError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FromMatlabError
impl Debug for FromMatlabError
sourceimpl Display for FromMatlabError
impl Display for FromMatlabError
sourceimpl Hash for FromMatlabError
impl Hash for FromMatlabError
sourceimpl MexMessage for FromMatlabError
impl MexMessage for FromMatlabError
sourceimpl PartialEq<FromMatlabError> for FromMatlabError
impl PartialEq<FromMatlabError> for FromMatlabError
impl Copy for FromMatlabError
impl StructuralPartialEq for FromMatlabError
Auto Trait Implementations
impl RefUnwindSafe for FromMatlabError
impl Send for FromMatlabError
impl Sync for FromMatlabError
impl Unpin for FromMatlabError
impl UnwindSafe for FromMatlabError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more