#[repr(u32)]pub enum cudaMemoryType {
cudaMemoryTypeUnregistered = 0,
cudaMemoryTypeHost = 1,
cudaMemoryTypeDevice = 2,
cudaMemoryTypeManaged = 3,
}Variants§
cudaMemoryTypeUnregistered = 0
cudaMemoryTypeHost = 1
cudaMemoryTypeDevice = 2
cudaMemoryTypeManaged = 3
Trait Implementations§
Source§impl Clone for cudaMemoryType
impl Clone for cudaMemoryType
Source§fn clone(&self) -> cudaMemoryType
fn clone(&self) -> cudaMemoryType
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 moreimpl Copy for cudaMemoryType
Source§impl Debug for cudaMemoryType
impl Debug for cudaMemoryType
impl Eq for cudaMemoryType
Source§impl Hash for cudaMemoryType
impl Hash for cudaMemoryType
Source§impl Ord for cudaMemoryType
impl Ord for cudaMemoryType
Source§fn cmp(&self, other: &cudaMemoryType) -> Ordering
fn cmp(&self, other: &cudaMemoryType) -> Ordering
1.21.0 (const: unstable) · 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 for cudaMemoryType
impl PartialEq for cudaMemoryType
Source§fn eq(&self, other: &cudaMemoryType) -> bool
fn eq(&self, other: &cudaMemoryType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cudaMemoryType
impl PartialOrd for cudaMemoryType
impl StructuralPartialEq for cudaMemoryType
Auto Trait Implementations§
impl Freeze for cudaMemoryType
impl RefUnwindSafe for cudaMemoryType
impl Send for cudaMemoryType
impl Sync for cudaMemoryType
impl Unpin for cudaMemoryType
impl UnsafeUnpin for cudaMemoryType
impl UnwindSafe for cudaMemoryType
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