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

Method as_ptr

crates/cust/src/memory/pointer.rs:43–45  ·  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

41 /// Returns a rust [`pointer`] created from this pointer, meant for FFI purposes.
42 /// **The pointer is not dereferenceable from the CPU!**
43 pub fn as_ptr(&self) -> *const T {
44 self.ptr as *const T
45 }
46
47 /// Returns a rust [`pointer`] created from this pointer, meant for FFI purposes.
48 /// **The pointer is not dereferenceable from the CPU!**

Calls

no outgoing calls

Tested by

no test coverage detected