#[repr(i32)]pub enum cudaMemcpyKind {
HostToHost = 0,
HostToDevice = 1,
DeviceToHost = 2,
DeviceToDevice = 3,
Default = 4,
}Expand description
Direction-of-copy selector for cudaMemcpy.
Variants§
HostToHost = 0
HostToDevice = 1
DeviceToHost = 2
DeviceToDevice = 3
Default = 4
Let the runtime infer direction from the pointer attributes (UVA).
Trait Implementations§
Source§impl Clone for cudaMemcpyKind
impl Clone for cudaMemcpyKind
Source§fn clone(&self) -> cudaMemcpyKind
fn clone(&self) -> cudaMemcpyKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for cudaMemcpyKind
impl Debug for cudaMemcpyKind
Source§impl PartialEq for cudaMemcpyKind
impl PartialEq for cudaMemcpyKind
Source§fn eq(&self, other: &cudaMemcpyKind) -> bool
fn eq(&self, other: &cudaMemcpyKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for cudaMemcpyKind
impl Eq for cudaMemcpyKind
impl StructuralPartialEq for cudaMemcpyKind
Auto Trait Implementations§
impl Freeze for cudaMemcpyKind
impl RefUnwindSafe for cudaMemcpyKind
impl Send for cudaMemcpyKind
impl Sync for cudaMemcpyKind
impl Unpin for cudaMemcpyKind
impl UnsafeUnpin for cudaMemcpyKind
impl UnwindSafe for cudaMemcpyKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more