#[repr(C)]pub struct CUgraphNodeParams {
pub type_: c_int,
pub reserved0: [c_int; 3],
pub payload: [u64; 29],
pub reserved2: c_longlong,
}Expand description
CUgraphNodeParams — generic node-params tagged union. We model the
payload as an opaque [u64; 30] (large enough to hold any variant)
plus the discriminant and tail. Safe wrappers populate the payload via
typed helpers; raw users can cast through payload.as_mut_ptr().
Layout (CUDA 13.x):
struct CUgraphNodeParams {
CUgraphNodeType type; // 4
int reserved0[3]; // 12
union { ... } payload; // 232 bytes (29 × c_longlong)
long long reserved2; // 8
};Total 256 bytes, alignment 8.
Fields§
§type_: c_int§reserved0: [c_int; 3]§payload: [u64; 29]§reserved2: c_longlongTrait Implementations§
Source§impl Clone for CUgraphNodeParams
impl Clone for CUgraphNodeParams
Source§fn clone(&self) -> CUgraphNodeParams
fn clone(&self) -> CUgraphNodeParams
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 moreSource§impl Debug for CUgraphNodeParams
impl Debug for CUgraphNodeParams
Source§impl Default for CUgraphNodeParams
impl Default for CUgraphNodeParams
impl Copy for CUgraphNodeParams
Auto Trait Implementations§
impl Freeze for CUgraphNodeParams
impl RefUnwindSafe for CUgraphNodeParams
impl Send for CUgraphNodeParams
impl Sync for CUgraphNodeParams
impl Unpin for CUgraphNodeParams
impl UnsafeUnpin for CUgraphNodeParams
impl UnwindSafe for CUgraphNodeParams
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