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