pub struct PitchedPtr {
pub pitch: usize,
pub x_size: usize,
pub y_size: usize,
/* private fields */
}Fields§
§pitch: usize§x_size: usize§y_size: usizeImplementations§
Source§impl PitchedPtr
impl PitchedPtr
Sourcepub const unsafe fn new(
ptr: *mut (),
pitch: usize,
x_size: usize,
y_size: usize,
) -> Self
pub const unsafe fn new( ptr: *mut (), pitch: usize, x_size: usize, y_size: usize, ) -> Self
Creates pitched pointer parameters from a raw device or mapped host pointer.
§Safety
ptr must be valid for every row described by pitch, x_size, and y_size when CUDA evaluates the graph node using this value.
pub const fn ptr(self) -> *mut ()
Trait Implementations§
Source§impl Clone for PitchedPtr
impl Clone for PitchedPtr
Source§fn clone(&self) -> PitchedPtr
fn clone(&self) -> PitchedPtr
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 PitchedPtr
Source§impl Debug for PitchedPtr
impl Debug for PitchedPtr
impl Eq for PitchedPtr
Source§impl From<PitchedPtr> for cudaPitchedPtr
impl From<PitchedPtr> for cudaPitchedPtr
Source§fn from(value: PitchedPtr) -> Self
fn from(value: PitchedPtr) -> Self
Converts to this type from the input type.
Source§impl Hash for PitchedPtr
impl Hash for PitchedPtr
Source§impl PartialEq for PitchedPtr
impl PartialEq for PitchedPtr
Source§fn eq(&self, other: &PitchedPtr) -> bool
fn eq(&self, other: &PitchedPtr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PitchedPtr
Auto Trait Implementations§
impl !Send for PitchedPtr
impl !Sync for PitchedPtr
impl Freeze for PitchedPtr
impl RefUnwindSafe for PitchedPtr
impl Unpin for PitchedPtr
impl UnsafeUnpin for PitchedPtr
impl UnwindSafe for PitchedPtr
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