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

Method as_device_ptr

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

Source from the content-addressed store, hash-verified

107
108impl<T: DeviceCopy> GpuBuffer<T> for DeviceBuffer<T> {
109 fn as_device_ptr(&self) -> DevicePointer<T> {
110 self.as_slice().as_device_ptr()
111 }
112
113 fn len(&self) -> usize {
114 (**self).len()

Callers 1

as_raw_ptrMethod · 0.45

Calls 3

as_ptrMethod · 0.80
as_sliceMethod · 0.45
as_rawMethod · 0.45

Tested by

no test coverage detected