Enum hip_sys::hiprt::hipMemcpyKind
source · #[non_exhaustive]#[repr(u32)]pub enum hipMemcpyKind {
hipMemcpyHostToHost,
hipMemcpyHostToDevice,
hipMemcpyDeviceToHost,
hipMemcpyDeviceToDevice,
hipMemcpyDefault,
}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.
hipMemcpyHostToHost
< Host-to-Host Copy
hipMemcpyHostToDevice
< Host-to-Device Copy
hipMemcpyDeviceToHost
< Device-to-Host Copy
hipMemcpyDeviceToDevice
< Device-to-Device Copy
hipMemcpyDefault
Trait Implementations§
source§impl Clone for hipMemcpyKind
impl Clone for hipMemcpyKind
source§fn clone(&self) -> hipMemcpyKind
fn clone(&self) -> hipMemcpyKind
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 hipMemcpyKind
impl Debug for hipMemcpyKind
source§impl Hash for hipMemcpyKind
impl Hash for hipMemcpyKind
source§impl Ord for hipMemcpyKind
impl Ord for hipMemcpyKind
source§fn cmp(&self, other: &hipMemcpyKind) -> Ordering
fn cmp(&self, other: &hipMemcpyKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<hipMemcpyKind> for hipMemcpyKind
impl PartialEq<hipMemcpyKind> for hipMemcpyKind
source§fn eq(&self, other: &hipMemcpyKind) -> bool
fn eq(&self, other: &hipMemcpyKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<hipMemcpyKind> for hipMemcpyKind
impl PartialOrd<hipMemcpyKind> for hipMemcpyKind
source§fn partial_cmp(&self, other: &hipMemcpyKind) -> Option<Ordering>
fn partial_cmp(&self, other: &hipMemcpyKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for hipMemcpyKind
impl Eq for hipMemcpyKind
impl StructuralEq for hipMemcpyKind
impl StructuralPartialEq for hipMemcpyKind
Auto Trait Implementations§
impl RefUnwindSafe for hipMemcpyKind
impl Send for hipMemcpyKind
impl Sync for hipMemcpyKind
impl Unpin for hipMemcpyKind
impl UnwindSafe for hipMemcpyKind
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