pub struct MemoryCopy1DNodeParams { /* private fields */ }Implementations§
Source§impl MemoryCopy1DNodeParams
impl MemoryCopy1DNodeParams
Sourcepub const unsafe fn new(
dst: *mut (),
src: *const (),
count: usize,
kind: MemoryCopyKind,
) -> Self
pub const unsafe fn new( dst: *mut (), src: *const (), count: usize, kind: MemoryCopyKind, ) -> Self
Creates one-dimensional memcpy node parameters from raw pointers.
§Safety
dst and src must be valid for count bytes according to kind when CUDA evaluates the graph node using this value.
pub const fn dst(self) -> *mut ()
pub const fn src(self) -> *const ()
pub const fn count(self) -> usize
pub const fn kind(self) -> MemoryCopyKind
Trait Implementations§
Source§impl Clone for MemoryCopy1DNodeParams
impl Clone for MemoryCopy1DNodeParams
Source§fn clone(&self) -> MemoryCopy1DNodeParams
fn clone(&self) -> MemoryCopy1DNodeParams
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 MemoryCopy1DNodeParams
Auto Trait Implementations§
impl !Send for MemoryCopy1DNodeParams
impl !Sync for MemoryCopy1DNodeParams
impl Freeze for MemoryCopy1DNodeParams
impl RefUnwindSafe for MemoryCopy1DNodeParams
impl Unpin for MemoryCopy1DNodeParams
impl UnsafeUnpin for MemoryCopy1DNodeParams
impl UnwindSafe for MemoryCopy1DNodeParams
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