Enum rcudnn::cudaMemcpyKind
source · #[non_exhaustive]#[repr(u32)]pub enum cudaMemcpyKind {
cudaMemcpyHostToHost = 0,
cudaMemcpyHostToDevice = 1,
cudaMemcpyDeviceToHost = 2,
cudaMemcpyDeviceToDevice = 3,
cudaMemcpyDefault = 4,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
cudaMemcpyHostToHost = 0
cudaMemcpyHostToDevice = 1
cudaMemcpyDeviceToHost = 2
cudaMemcpyDeviceToDevice = 3
cudaMemcpyDefault = 4
Trait Implementations§
source§impl Clone for cudaMemcpyKind
impl Clone for cudaMemcpyKind
source§fn clone(&self) -> cudaMemcpyKind
fn clone(&self) -> cudaMemcpyKind
Returns a copy of the value. Read more
1.0.0 · 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 Hash for cudaMemcpyKind
impl Hash for cudaMemcpyKind
source§impl PartialEq for cudaMemcpyKind
impl PartialEq for cudaMemcpyKind
source§fn eq(&self, other: &cudaMemcpyKind) -> bool
fn eq(&self, other: &cudaMemcpyKind) -> bool
This method 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 RefUnwindSafe for cudaMemcpyKind
impl Send for cudaMemcpyKind
impl Sync for cudaMemcpyKind
impl Unpin 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