#[non_exhaustive]#[repr(u32)]pub enum GraphNodeType {
Show 14 variants
Kernel = 0,
Memcpy = 1,
Memset = 2,
Host = 3,
Graph = 4,
Empty = 5,
WaitEvent = 6,
EventRecord = 7,
ExternalSemaphoresSignal = 8,
ExternalSemaphoresWait = 9,
MemoryAlloc = 10,
MemoryFree = 11,
BatchMemOp = 12,
Conditional = 13,
}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.
Kernel = 0
Memcpy = 1
Memset = 2
Host = 3
Graph = 4
Empty = 5
WaitEvent = 6
EventRecord = 7
ExternalSemaphoresSignal = 8
ExternalSemaphoresWait = 9
MemoryAlloc = 10
MemoryFree = 11
BatchMemOp = 12
Conditional = 13
Trait Implementations§
Source§impl Clone for GraphNodeType
impl Clone for GraphNodeType
Source§fn clone(&self) -> GraphNodeType
fn clone(&self) -> GraphNodeType
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 GraphNodeType
Source§impl Debug for GraphNodeType
impl Debug for GraphNodeType
Source§impl Display for GraphNodeType
impl Display for GraphNodeType
impl Eq for GraphNodeType
Source§impl From<CUgraphNodeType_enum> for GraphNodeType
impl From<CUgraphNodeType_enum> for GraphNodeType
Source§fn from(value: cudaGraphNodeType) -> Self
fn from(value: cudaGraphNodeType) -> Self
Converts to this type from the input type.
Source§impl From<GraphNodeType> for u32
impl From<GraphNodeType> for u32
Source§fn from(enum_value: GraphNodeType) -> Self
fn from(enum_value: GraphNodeType) -> Self
Converts to this type from the input type.
Source§impl From<GraphNodeType> for cudaGraphNodeType
impl From<GraphNodeType> for cudaGraphNodeType
Source§fn from(value: GraphNodeType) -> Self
fn from(value: GraphNodeType) -> Self
Converts to this type from the input type.
Source§impl Hash for GraphNodeType
impl Hash for GraphNodeType
Source§impl PartialEq for GraphNodeType
impl PartialEq for GraphNodeType
Source§fn eq(&self, other: &GraphNodeType) -> bool
fn eq(&self, other: &GraphNodeType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GraphNodeType
Source§impl TryFrom<u32> for GraphNodeType
impl TryFrom<u32> for GraphNodeType
Source§type Error = TryFromPrimitiveError<GraphNodeType>
type Error = TryFromPrimitiveError<GraphNodeType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for GraphNodeType
impl TryFromPrimitive for GraphNodeType
const NAME: &'static str = "GraphNodeType"
type Primitive = u32
type Error = TryFromPrimitiveError<GraphNodeType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for GraphNodeType
impl RefUnwindSafe for GraphNodeType
impl Send for GraphNodeType
impl Sync for GraphNodeType
impl Unpin for GraphNodeType
impl UnsafeUnpin for GraphNodeType
impl UnwindSafe for GraphNodeType
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