pub struct InterleavedComplexArray<T, P> { /* private fields */ }Implementations§
Source§impl<T: MatlabNumber> InterleavedComplexArray<T, MxArray>
impl<T: MatlabNumber> InterleavedComplexArray<T, MxArray>
Methods from Deref<Target = mxArray>§
Sourcepub fn duplicate(&self) -> MxArray
pub fn duplicate(&self) -> MxArray
Create a deep copy of the array, and return as an owned type. However,
consider using MatlabClass::duplicate instead if you are already working
with MatlabClasses.
Sourcepub fn dimensions(&self) -> &[usize]
pub fn dimensions(&self) -> &[usize]
Return the sizes of the constituent dimensions of the mxArray
Sourcepub fn raw_class_id(&self) -> u32
pub fn raw_class_id(&self) -> u32
Return the raw class ID; the number Matlab returns.
Sourcepub fn class_id(&self) -> Result<ClassID, u32>
pub fn class_id(&self) -> Result<ClassID, u32>
Return Ok(ClassID) for mxArrays which map to a built-in class (such as
numeric arrays, structure arrays, and cell arrays (see ClassID);
otherwise it returns the raw class ID in the Err variant. These other
values of the raw class ID are used in modern versions of Matlab for custom
classes, defined via e..g classdef.
Sourcepub fn is_complex(&self) -> bool
pub fn is_complex(&self) -> bool
Check whether the backing array is complex. Since the only arrays which can be complex are numeric arrays, this also implies that.
pub fn complexity(&self) -> Complexity
Trait Implementations§
Source§impl<T: Clone, P: Clone> Clone for InterleavedComplexArray<T, P>
impl<T: Clone, P: Clone> Clone for InterleavedComplexArray<T, P>
Source§fn clone(&self) -> InterleavedComplexArray<T, P>
fn clone(&self) -> InterleavedComplexArray<T, P>
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<'p, T, P> ComplexNumericArray<'p> for InterleavedComplexArray<T, P>where
T: MatlabNumber + 'p,
P: MatlabPtr + 'p,
impl<'p, T, P> ComplexNumericArray<'p> for InterleavedComplexArray<T, P>where
T: MatlabNumber + 'p,
P: MatlabPtr + 'p,
Source§impl<T, P> Deref for InterleavedComplexArray<T, P>where
P: MatlabPtr,
impl<T, P> Deref for InterleavedComplexArray<T, P>where
P: MatlabPtr,
Source§impl<T, P> DerefMut for InterleavedComplexArray<T, P>where
P: MutMatlabPtr,
impl<T, P> DerefMut for InterleavedComplexArray<T, P>where
P: MutMatlabPtr,
Source§impl<'a, 'b, T, P> From<&InterleavedComplexArray<T, P>> for ArrayViewD<'a, Complex<T>>where
T: MatlabNumber,
P: MatlabPtr + 'a,
'b: 'a,
impl<'a, 'b, T, P> From<&InterleavedComplexArray<T, P>> for ArrayViewD<'a, Complex<T>>where
T: MatlabNumber,
P: MatlabPtr + 'a,
'b: 'a,
Source§fn from(num: &InterleavedComplexArray<T, P>) -> Self
fn from(num: &InterleavedComplexArray<T, P>) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b, T, P> From<&'b mut InterleavedComplexArray<T, P>> for ArrayViewMutD<'a, Complex<T>>where
T: MatlabNumber,
P: MutMatlabPtr + 'a,
'b: 'a,
impl<'a, 'b, T, P> From<&'b mut InterleavedComplexArray<T, P>> for ArrayViewMutD<'a, Complex<T>>where
T: MatlabNumber,
P: MutMatlabPtr + 'a,
'b: 'a,
Source§fn from(num: &mut InterleavedComplexArray<T, P>) -> Self
fn from(num: &mut InterleavedComplexArray<T, P>) -> Self
Converts to this type from the input type.
Source§impl<T> From<[Complex<T>; 0]> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
impl<T> From<[Complex<T>; 0]> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
Source§impl<'a, T, D> From<ArrayBase<OwnedRepr<Complex<T>>, D>> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
D: Dimension,
impl<'a, T, D> From<ArrayBase<OwnedRepr<Complex<T>>, D>> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
D: Dimension,
Source§impl<T> From<Complex<T>> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
impl<T> From<Complex<T>> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
Source§impl<'a, T> From<InterleavedComplexArray<T, &'a mut mxArray_tag>> for ArrayViewMutD<'a, Complex<T>>where
T: MatlabNumber,
impl<'a, T> From<InterleavedComplexArray<T, &'a mut mxArray_tag>> for ArrayViewMutD<'a, Complex<T>>where
T: MatlabNumber,
Source§fn from(num: InterleavedComplexArray<T, &'a mut mxArray>) -> Self
fn from(num: InterleavedComplexArray<T, &'a mut mxArray>) -> Self
Converts to this type from the input type.
Source§impl<'a, T> From<InterleavedComplexArray<T, &'a mxArray_tag>> for ArrayViewD<'a, Complex<T>>where
T: MatlabNumber,
impl<'a, T> From<InterleavedComplexArray<T, &'a mxArray_tag>> for ArrayViewD<'a, Complex<T>>where
T: MatlabNumber,
Source§fn from(num: InterleavedComplexArray<T, &'a mxArray>) -> Self
fn from(num: InterleavedComplexArray<T, &'a mxArray>) -> Self
Converts to this type from the input type.
Source§impl<T> FromVec<Complex<T>> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
impl<T> FromVec<Complex<T>> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
Source§impl<T, P> MatlabClass<P> for InterleavedComplexArray<T, P>where
T: MatlabNumber,
P: MatlabPtr,
impl<T, P> MatlabClass<P> for InterleavedComplexArray<T, P>where
T: MatlabNumber,
P: MatlabPtr,
Source§type Owned = InterleavedComplexArray<T, MxArray>
type Owned = InterleavedComplexArray<T, MxArray>
The owned variant of this matlab class.
Source§fn from_mx_array(mx: P) -> Result<Self, FromMatlabError<P>>
fn from_mx_array(mx: P) -> Result<Self, FromMatlabError<P>>
Try to build a matlab class from a
MatlabPtr. If the type requirements of
the class match what the pointer is, then the class is constructed. Otherwise,
an error is returned; containing the reason of the failure and the original
pointer. The latter is especially useful with MxArrays; the owned
MatlabPtr type — otherwise it would be dropped.Source§fn into_inner(self) -> P
fn into_inner(self) -> P
Deconstruct the
MatlabClass back to a bare MatlabPtr.Source§impl<T, P> MutMatlabClass<P> for InterleavedComplexArray<T, P>where
T: MatlabNumber,
P: MutMatlabPtr,
impl<T, P> MutMatlabClass<P> for InterleavedComplexArray<T, P>where
T: MatlabNumber,
P: MutMatlabPtr,
type AsBorrowed<'a> = InterleavedComplexArray<T, &'a mxArray_tag> where P: 'a, T: 'a
fn as_borrowed<'a>(&'a self) -> Self::AsBorrowed<'a>
fn inner_mut(&mut self) -> &mut P
Source§impl<'p, T, P> MutNumericArray<'p> for InterleavedComplexArray<T, P>where
T: MatlabNumber + 'p,
P: MutMatlabPtr + 'p,
impl<'p, T, P> MutNumericArray<'p> for InterleavedComplexArray<T, P>where
T: MatlabNumber + 'p,
P: MutMatlabPtr + 'p,
Source§impl<T> NewEmpty for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
impl<T> NewEmpty for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
Source§impl<'p, T, P> NumericArray<'p> for InterleavedComplexArray<T, P>where
T: MatlabNumber + 'p,
P: MatlabPtr + 'p,
impl<'p, T, P> NumericArray<'p> for InterleavedComplexArray<T, P>where
T: MatlabNumber + 'p,
P: MatlabPtr + 'p,
Source§impl<T> OwnedMatlabClass for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
impl<T> OwnedMatlabClass for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
Source§type AsMutable<'a> = InterleavedComplexArray<T, &'a mut mxArray_tag>
where
Self: 'a
type AsMutable<'a> = InterleavedComplexArray<T, &'a mut mxArray_tag> where Self: 'a
The way this class would be represented if it were a mutable borrow.
Source§fn as_mutable<'a>(&'a mut self) -> Self::AsMutable<'a>
fn as_mutable<'a>(&'a mut self) -> Self::AsMutable<'a>
Create a
MutMatlabClass from this owned instance.Source§impl<T: PartialEq, P: PartialEq> PartialEq for InterleavedComplexArray<T, P>
impl<T: PartialEq, P: PartialEq> PartialEq for InterleavedComplexArray<T, P>
Source§fn eq(&self, other: &InterleavedComplexArray<T, P>) -> bool
fn eq(&self, other: &InterleavedComplexArray<T, P>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T, P> TakeData<P> for InterleavedComplexArray<T, P>where
T: MatlabNumber,
P: MutMatlabPtr,
impl<T, P> TakeData<P> for InterleavedComplexArray<T, P>where
T: MatlabNumber,
P: MutMatlabPtr,
impl<T: Copy, P: Copy> Copy for InterleavedComplexArray<T, P>
impl<T: Eq, P: Eq> Eq for InterleavedComplexArray<T, P>
impl<T, P> StructuralPartialEq for InterleavedComplexArray<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for InterleavedComplexArray<T, P>where
P: Freeze,
impl<T, P> RefUnwindSafe for InterleavedComplexArray<T, P>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for InterleavedComplexArray<T, P>
impl<T, P> Sync for InterleavedComplexArray<T, P>
impl<T, P> Unpin for InterleavedComplexArray<T, P>
impl<T, P> UnwindSafe for InterleavedComplexArray<T, P>where
P: UnwindSafe,
T: UnwindSafe,
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