OwnedMatlabClass

Trait OwnedMatlabClass 

Source
pub trait OwnedMatlabClass: MutMatlabClass<MxArray> {
    type AsMutable<'a>
       where Self: 'a;

    // Required method
    fn as_mutable<'a>(&'a mut self) -> Self::AsMutable<'a>;
}
Expand description

Denotes whether a Matlab class owns its data.

Required Associated Types§

Source

type AsMutable<'a> where Self: 'a

The way this class would be represented if it were a mutable borrow.

Required Methods§

Source

fn as_mutable<'a>(&'a mut self) -> Self::AsMutable<'a>

Create a MutMatlabClass from this owned instance.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl OwnedMatlabClass for CellArray<MxArray>

Source§

type AsMutable<'a> = CellArray<&'a mut mxArray_tag> where Self: 'a

Source§

impl OwnedMatlabClass for CharArray<MxArray>

Source§

type AsMutable<'a> = CharArray<&'a mut mxArray_tag> where Self: 'a

Source§

impl OwnedMatlabClass for Function<MxArray>

Source§

type AsMutable<'a> = Function<&'a mut mxArray_tag> where Self: 'a

Source§

impl OwnedMatlabClass for Struct<MxArray>

Source§

type AsMutable<'a> = Struct<&'a mut mxArray_tag> where Self: 'a

Source§

impl<T> OwnedMatlabClass for Numeric<T, MxArray>
where T: MatlabNumber,

Source§

type AsMutable<'a> = Numeric<T, &'a mut mxArray_tag> where Self: 'a