pub struct MemorySetNodeParams { /* private fields */ }Implementations§
Source§impl MemorySetNodeParams
impl MemorySetNodeParams
Sourcepub const unsafe fn new(dst: DevicePtr, element_size: u32, width: usize) -> Self
pub const unsafe fn new(dst: DevicePtr, element_size: u32, width: usize) -> Self
Creates raw memset node parameters.
§Safety
dst must be valid for writes of element_size * width bytes when the
graph executes. If height or pitch are changed after construction,
the caller must account for those values as required by CUDA.
pub const fn with_pitch(self, pitch: usize) -> Self
pub const fn with_value(self, value: u32) -> Self
pub const fn with_height(self, height: usize) -> Self
pub const fn dst(self) -> DevicePtr
pub const fn pitch(self) -> usize
pub const fn value(self) -> u32
pub const fn element_size(self) -> u32
pub const fn width(self) -> usize
pub const fn height(self) -> usize
Trait Implementations§
Source§impl Clone for MemorySetNodeParams
impl Clone for MemorySetNodeParams
Source§fn clone(&self) -> MemorySetNodeParams
fn clone(&self) -> MemorySetNodeParams
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 MemorySetNodeParams
Source§impl Debug for MemorySetNodeParams
impl Debug for MemorySetNodeParams
Source§impl From<&MemorySetNodeParams> for CUDA_MEMSET_NODE_PARAMS
impl From<&MemorySetNodeParams> for CUDA_MEMSET_NODE_PARAMS
Source§fn from(value: &MemorySetNodeParams) -> Self
fn from(value: &MemorySetNodeParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for MemorySetNodeParams
impl !Sync for MemorySetNodeParams
impl Freeze for MemorySetNodeParams
impl RefUnwindSafe for MemorySetNodeParams
impl Unpin for MemorySetNodeParams
impl UnsafeUnpin for MemorySetNodeParams
impl UnwindSafe for MemorySetNodeParams
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