#[non_exhaustive]#[repr(i32)]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 duplicate 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
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 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