pub struct MemoryCopyToSymbolNodeParams { /* private fields */ }Expand description
Raw parameters for copying bytes to a CUDA symbol in a graph node.
The descriptor retains neither the symbol’s code owner nor the source allocation.
Implementations§
Source§impl MemoryCopyToSymbolNodeParams
impl MemoryCopyToSymbolNodeParams
Sourcepub const unsafe fn new(
symbol: *const (),
src: *const (),
count: usize,
offset: usize,
kind: MemoryCopyKind,
) -> Self
pub const unsafe fn new( symbol: *const (), src: *const (), count: usize, offset: usize, kind: MemoryCopyKind, ) -> Self
Creates symbol-copy node parameters from a raw source pointer.
§Safety
symbol must identify a valid CUDA symbol and src must be valid for reads of count bytes according to kind when CUDA evaluates the graph node using this value.
Sourcepub const fn kind(self) -> MemoryCopyKind
pub const fn kind(self) -> MemoryCopyKind
Returns the configured memory-copy direction.
Trait Implementations§
Source§impl Clone for MemoryCopyToSymbolNodeParams
impl Clone for MemoryCopyToSymbolNodeParams
impl Copy for MemoryCopyToSymbolNodeParams
Auto Trait Implementations§
impl !Send for MemoryCopyToSymbolNodeParams
impl !Sync for MemoryCopyToSymbolNodeParams
impl Forget for MemoryCopyToSymbolNodeParams
impl Freeze for MemoryCopyToSymbolNodeParams
impl Move for MemoryCopyToSymbolNodeParams
impl RefUnwindSafe for MemoryCopyToSymbolNodeParams
impl Unpin for MemoryCopyToSymbolNodeParams
impl UnsafeUnpin for MemoryCopyToSymbolNodeParams
impl UnwindSafe for MemoryCopyToSymbolNodeParams
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