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§
Sourcefn to_nd_array_buffer(&self) -> Array3<f32>
fn to_nd_array_buffer(&self) -> Array3<f32>
Get the buffer as Array3<f32>
Sourcefn from_nd_array_buffer(buffer: Array3<f32>) -> Self
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.