pub struct GraphNode { /* private fields */ }Expand description
Implementations§
Source§impl GraphNode
impl GraphNode
Sourcepub const unsafe fn from_raw(handle: cudaGraphNode_t) -> Self
pub const unsafe fn from_raw(handle: cudaGraphNode_t) -> Self
Wraps an existing CUDA graph node handle.
The returned node has no Graph identity, so graph, executable-graph, and stream-capture methods reject it with Error::GraphNodeMismatch.
§Safety
handle must be a valid CUDA graph node handle.
The caller must ensure the node remains valid for every operation using the returned token and that it belongs to the graph or executable graph passed to those operations.
Sourcepub const fn as_raw(&self) -> cudaGraphNode_t
pub const fn as_raw(&self) -> cudaGraphNode_t
Returns the native node handle without transferring graph ownership.
Trait Implementations§
impl Eq for GraphNode
Auto Trait Implementations§
impl !RefUnwindSafe for GraphNode
impl !Send for GraphNode
impl !Sync for GraphNode
impl !UnwindSafe for GraphNode
impl Forget for GraphNode
impl Freeze for GraphNode
impl Move for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.