MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / as_mut_ptr

Method as_mut_ptr

crates/cust/src/memory/pointer.rs:49–51  ·  view source on GitHub ↗

Returns a rust [`pointer`] created from this pointer, meant for FFI purposes. The pointer is not dereferenceable from the CPU!

(&self)

Source from the content-addressed store, hash-verified

47 /// Returns a rust [`pointer`] created from this pointer, meant for FFI purposes.
48 /// **The pointer is not dereferenceable from the CPU!**
49 pub fn as_mut_ptr(&self) -> *mut T {
50 self.ptr as *mut T
51 }
52
53 /// Returns the contained CUdeviceptr.
54 pub fn as_raw(&self) -> CUdeviceptr {

Calls

no outgoing calls

Tested by 1

from_raw_partsFunction · 0.36