[][src]Trait rustacuda::memory::CopyDestination

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

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

fn copy_from(&mut self, source: &O) -> CudaResult<()>

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

Errors

If a CUDA error occurs, return the error.

fn copy_to(&self, dest: &mut O) -> CudaResult<()>

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

Errors

If a CUDA error occurs, return the error.

Loading content...

Implementors

impl<'a, T: DeviceCopy> CopyDestination<T> for Symbol<'a, T>[src]

impl<T: DeviceCopy> CopyDestination<DeviceBox<T>> for DeviceBox<T>[src]

impl<T: DeviceCopy> CopyDestination<DeviceBuffer<T>> for DeviceSlice<T>[src]

impl<T: DeviceCopy> CopyDestination<DeviceSlice<T>> for DeviceSlice<T>[src]

impl<T: DeviceCopy> CopyDestination<T> for DeviceBox<T>[src]

impl<T: DeviceCopy, I: AsRef<[T]> + AsMut<[T]> + ?Sized> CopyDestination<I> for DeviceSlice<T>[src]

Loading content...