Skip to main content

NewOwned

Trait NewOwned 

Source
pub unsafe trait NewOwned<T>: ReprOwned {
    type Error;

    // Required method
    fn new_owned(self, init: T) -> Result<Mat<Self>, Self::Error>;
}
Expand description

Create a new Mat from an initializer.

§Safety

Implementations must ensure that the returned Mat is compatible with Self’s implementation of ReprOwned.

Required Associated Types§

Source

type Error

Errors that can occur when initializing.

Required Methods§

Source

fn new_owned(self, init: T) -> Result<Mat<Self>, Self::Error>

Create a new Mat initialized with init.

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§