MutMatlabClass

Trait MutMatlabClass 

Source
pub trait MutMatlabClass<P>: MatlabClass<P> + DerefMut {
    type AsBorrowed<'a>
       where Self: 'a,
             P: 'a;

    // Required methods
    fn as_borrowed<'a>(&'a self) -> Self::AsBorrowed<'a>;
    fn inner_mut(&mut self) -> &mut P;
}
Expand description

Denotes whether the Matlab class is mutable.

Required Associated Types§

Source

type AsBorrowed<'a> where Self: 'a, P: 'a

Required Methods§

Source

fn as_borrowed<'a>(&'a self) -> Self::AsBorrowed<'a>

Source

fn inner_mut(&mut self) -> &mut P

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<'p, P: MutMatlabPtr + 'p> MutMatlabClass<P> for Struct<P>

Source§

type AsBorrowed<'a> = Struct<&'a mxArray_tag> where P: 'a

Source§

impl<P> MutMatlabClass<P> for CellArray<P>
where P: MutMatlabPtr,

Source§

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

Source§

impl<P> MutMatlabClass<P> for CharArray<P>
where P: MutMatlabPtr,

Source§

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

Source§

impl<P> MutMatlabClass<P> for Function<P>
where P: MutMatlabPtr,

Source§

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

Source§

impl<T, P> MutMatlabClass<P> for Numeric<T, P>

Source§

type AsBorrowed<'a> = Numeric<T, &'a mxArray_tag> where P: 'a, T: 'a