pub struct InterleavedComplexArray<T, P> { /* private fields */ }Implementations§
Source§impl<T> InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
impl<T> InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
Methods from Deref<Target = mxArray_tag>§
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, P> Clone for InterleavedComplexArray<T, P>
impl<T, P> 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> Debug for InterleavedComplexArray<T, P>
impl<T, P> Debug for InterleavedComplexArray<T, 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§type Target = mxArray_tag
type Target = mxArray_tag
The resulting type after dereferencing.
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<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<T> FromVec<Complex<T>> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
impl<T> FromVec<Complex<T>> for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
Source§fn from_boxed_slice<L>(
b: Box<[Complex<T>]>,
l: L,
) -> InterleavedComplexArray<T, MxArray>where
L: VecLayout,
fn from_boxed_slice<L>(
b: Box<[Complex<T>]>,
l: L,
) -> InterleavedComplexArray<T, MxArray>where
L: VecLayout,
Convert a boxed slice into some matlab type.
fn from_slice<S, L>(s: S, l: L) -> Self
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<InterleavedComplexArray<T, P>, FromMatlabError<P>>
fn from_mx_array( mx: P, ) -> Result<InterleavedComplexArray<T, P>, 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§fn inner(&self) -> &P
fn inner(&self) -> &P
Get a reference to the inner
MatlabPtr. However, note that for &mxArray
and &mut mxArray, the returned references will be of type &&mxArray and
&&mut mxArray.Source§fn duplicate(&self) -> <InterleavedComplexArray<T, P> as MatlabClass<P>>::Owned
fn duplicate(&self) -> <InterleavedComplexArray<T, P> as MatlabClass<P>>::Owned
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, ) -> <InterleavedComplexArray<T, P> as MutMatlabClass<P>>::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,
type MutData = &'p mut [Complex<T>]
fn mut_data( &mut self, ) -> <InterleavedComplexArray<T, P> as MutNumericArray<'p>>::MutData
Source§impl<T> NewEmpty for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
impl<T> NewEmpty for InterleavedComplexArray<T, MxArray>where
T: MatlabNumber,
Source§fn new_empty() -> InterleavedComplexArray<T, MxArray>
fn new_empty() -> InterleavedComplexArray<T, MxArray>
Construct the empty type
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,
type Data = &'p [Complex<T>]
fn data(&self) -> <InterleavedComplexArray<T, P> as NumericArray<'p>>::Data
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
InterleavedComplexArray<T, MxArray>: 'a
type AsMutable<'a> = InterleavedComplexArray<T, &'a mut mxArray_tag> where InterleavedComplexArray<T, MxArray>: 'a
The way this class would be represented if it were a mutable borrow.
Source§fn as_mutable<'a>(
&'a mut self,
) -> <InterleavedComplexArray<T, MxArray> as OwnedMatlabClass>::AsMutable<'a>
fn as_mutable<'a>( &'a mut self, ) -> <InterleavedComplexArray<T, MxArray> as OwnedMatlabClass>::AsMutable<'a>
Create a
MutMatlabClass from this owned instance.Source§impl<T, P> PartialEq for InterleavedComplexArray<T, P>
impl<T, P> 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, P> Copy for InterleavedComplexArray<T, P>
impl<T, P> 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