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

Method deref

crates/cust/src/memory/unified.rs:280–282  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

278 type Target = T;
279
280 fn deref(&self) -> &T {
281 unsafe { &*self.ptr.as_raw() }
282 }
283}
284impl<T: DeviceCopy> DerefMut for UnifiedBox<T> {
285 fn deref_mut(&mut self) -> &mut T {

Callers

nothing calls this directly

Calls 2

from_raw_partsFunction · 0.70
as_rawMethod · 0.45

Tested by

no test coverage detected