TakeData

Trait TakeData 

Source
pub trait TakeData<P>: MutMatlabClass<P> {
    type OwnedData;

    // Required method
    fn take_data(&mut self) -> Self::OwnedData;
}
Expand description

Only some Matlab classes, i.e the numeric classes, have data that can be meaningfully taken out of the backing MutMatlabPtr.

Required Associated Types§

Source

type OwnedData

The type of data that this array wraps.

Required Methods§

Source

fn take_data(&mut self) -> Self::OwnedData

Take the data out of the array, leaving it in an empty state.

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<T, P> TakeData<P> for Numeric<T, P>