#[repr(u32)]pub enum cudaMemoryType {
cudaMemoryTypeUnregistered = 0,
cudaMemoryTypeHost = 1,
cudaMemoryTypeDevice = 2,
cudaMemoryTypeManaged = 3,
}Expand description
CUDA memory types.
Variants§
cudaMemoryTypeUnregistered = 0
Unregistered memory.
cudaMemoryTypeHost = 1
Host memory.
cudaMemoryTypeDevice = 2
Device memory.
cudaMemoryTypeManaged = 3
Managed memory.
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 From<cudaMemoryType> for u32
impl From<cudaMemoryType> for u32
Source§fn from(enum_value: cudaMemoryType) -> Self
fn from(enum_value: cudaMemoryType) -> Self
Converts to this type from the input type.
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
Source§impl TryFrom<u32> for cudaMemoryType
impl TryFrom<u32> for cudaMemoryType
Source§type Error = TryFromPrimitiveError<cudaMemoryType>
type Error = TryFromPrimitiveError<cudaMemoryType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for cudaMemoryType
impl TryFromPrimitive for cudaMemoryType
const NAME: &'static str = "cudaMemoryType"
type Primitive = u32
type Error = TryFromPrimitiveError<cudaMemoryType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
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