pub trait Buffer<'a, N: Num>: Sized {
// Required methods
fn to_device(&mut self, src: &[N]) -> Result<()>;
fn to_host(&self, dst: &mut [N]) -> Result<()>;
}Expand description
A device-side memory buffer holding elements of dtype N.
Required Methods§
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.