Trait NDArrayBuffer

Source
pub trait NDArrayBuffer {
    // Required methods
    fn to_nd_array_buffer(&self) -> Array3<f32>;
    fn from_nd_array_buffer(buffer: Array3<f32>) -> Self;
}
Expand description

Trait to add the ability to get a nd-array buffer from the target type

Required Methods§

Source

fn to_nd_array_buffer(&self) -> Array3<f32>

Get the buffer as Array3<f32>

Source

fn from_nd_array_buffer(buffer: Array3<f32>) -> Self

Generate a new instance of the target from a nd-array buffer.

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.

Implementations on Foreign Types§

Source§

impl NDArrayBuffer for DynamicImage

Implementors§