#[repr(i32)]pub enum cutensorMgHostDevice_t {
CUTENSOR_MG_DEVICE_HOST = -1,
CUTENSOR_MG_DEVICE_HOST_PINNED = -2,
}Expand description
Enumerated device codes for host-side tensors.
Variants§
CUTENSOR_MG_DEVICE_HOST = -1
The memory is located on the host in regular memory.
CUTENSOR_MG_DEVICE_HOST_PINNED = -2
The memory is located on the host in pinned memory.
Trait Implementations§
Source§impl Clone for cutensorMgHostDevice_t
impl Clone for cutensorMgHostDevice_t
Source§fn clone(&self) -> cutensorMgHostDevice_t
fn clone(&self) -> cutensorMgHostDevice_t
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 cutensorMgHostDevice_t
Source§impl Debug for cutensorMgHostDevice_t
impl Debug for cutensorMgHostDevice_t
impl Eq for cutensorMgHostDevice_t
Source§impl From<cutensorMgHostDevice_t> for i32
impl From<cutensorMgHostDevice_t> for i32
Source§fn from(enum_value: cutensorMgHostDevice_t) -> Self
fn from(enum_value: cutensorMgHostDevice_t) -> Self
Converts to this type from the input type.
Source§impl Hash for cutensorMgHostDevice_t
impl Hash for cutensorMgHostDevice_t
Source§impl Ord for cutensorMgHostDevice_t
impl Ord for cutensorMgHostDevice_t
Source§fn cmp(&self, other: &cutensorMgHostDevice_t) -> Ordering
fn cmp(&self, other: &cutensorMgHostDevice_t) -> 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 cutensorMgHostDevice_t
impl PartialEq for cutensorMgHostDevice_t
Source§fn eq(&self, other: &cutensorMgHostDevice_t) -> bool
fn eq(&self, other: &cutensorMgHostDevice_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cutensorMgHostDevice_t
impl PartialOrd for cutensorMgHostDevice_t
impl StructuralPartialEq for cutensorMgHostDevice_t
Source§impl TryFrom<i32> for cutensorMgHostDevice_t
impl TryFrom<i32> for cutensorMgHostDevice_t
Source§type Error = TryFromPrimitiveError<cutensorMgHostDevice_t>
type Error = TryFromPrimitiveError<cutensorMgHostDevice_t>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for cutensorMgHostDevice_t
impl TryFromPrimitive for cutensorMgHostDevice_t
const NAME: &'static str = "cutensorMgHostDevice_t"
type Primitive = i32
type Error = TryFromPrimitiveError<cutensorMgHostDevice_t>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for cutensorMgHostDevice_t
impl RefUnwindSafe for cutensorMgHostDevice_t
impl Send for cutensorMgHostDevice_t
impl Sync for cutensorMgHostDevice_t
impl Unpin for cutensorMgHostDevice_t
impl UnsafeUnpin for cutensorMgHostDevice_t
impl UnwindSafe for cutensorMgHostDevice_t
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