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

Method as_raw_ptr

crates/cust/src/memory/mod.rs:157–159  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

155
156impl<T: DeviceCopy> DeviceMemory for DeviceBox<T> {
157 fn as_raw_ptr(&self) -> cust_raw::CUdeviceptr {
158 self.as_device_ptr().as_raw()
159 }
160
161 fn size_in_bytes(&self) -> usize {
162 std::mem::size_of::<T>()

Callers

nothing calls this directly

Calls 2

as_rawMethod · 0.45
as_device_ptrMethod · 0.45

Tested by

no test coverage detected