pub trait CopyDestination<O: ?Sized>: Sealed {
    fn copy_from(&mut self, source: &O) -> CudaResult<()>;
    fn copy_to(&self, dest: &mut O) -> CudaResult<()>;
}
Expand description

Sealed trait implemented by types which can be the source or destination when copying data to/from the device or from one device allocation to another.

Required Methods§

Copy data from source. source must be the same size as self.

Errors:

If a CUDA error occurs, return the error.

Copy data to dest. dest must be the same size as self.

Errors:

If a CUDA error occurs, return the error.

Implementors§