pub trait MemCopyH2D<T> {
// Required methods
fn copy_to_on(
&self,
dst: &mut DeviceBuffer<T>,
device_ctx: &GpuDeviceCtx,
) -> Result<(), MemCopyError>;
fn to_device_on(
&self,
device_ctx: &GpuDeviceCtx,
) -> Result<DeviceBuffer<T>, MemCopyError>;
}Required Methods§
fn copy_to_on( &self, dst: &mut DeviceBuffer<T>, device_ctx: &GpuDeviceCtx, ) -> Result<(), MemCopyError>
fn to_device_on( &self, device_ctx: &GpuDeviceCtx, ) -> Result<DeviceBuffer<T>, MemCopyError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".