Skip to main content

NewCloned

Trait NewCloned 

Source
pub trait NewCloned: ReprOwned {
    // Required method
    fn new_cloned(v: MatRef<'_, Self>) -> Mat<Self>;
}
Expand description

Create a new Mat cloned from a view.

Required Methods§

Source

fn new_cloned(v: MatRef<'_, Self>) -> Mat<Self>

Clone the contents behind v, returning a new owning Mat.

Implementations should ensure the returned Mat is “semantically the same” as v.

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> NewCloned for Standard<T>
where T: Copy,