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

Method cast

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

Casts this device pointer to another type.

(self)

Source from the content-addressed store, hash-verified

327
328 /// Casts this device pointer to another type.
329 pub fn cast<U: DeviceCopy>(self) -> DevicePointer<U> {
330 DevicePointer::from_raw(self.ptr)
331 }
332}
333
334/// A pointer to unified memory.

Callers 15

renderMethod · 0.45
dump_debug_dotfileMethod · 0.45
add_kernel_nodeMethod · 0.45
add_ptxMethod · 0.45
add_cubinMethod · 0.45
add_fatbinMethod · 0.45
__raygen__renderFrameFunction · 0.45
predefine_fnMethod · 0.45
codegen_bitcode_modulesFunction · 0.45
internalize_passFunction · 0.45
codegen_global_asmMethod · 0.45
inline_asm_callFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected