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

Method add

crates/cust/src/memory/pointer.rs:216–221  ·  view source on GitHub ↗
(self, count: usize)

Source from the content-addressed store, hash-verified

214 /// ```
215 #[allow(clippy::should_implement_trait)]
216 pub unsafe fn add(self, count: usize) -> Self
217 where
218 T: Sized,
219 {
220 self.offset(count as isize)
221 }
222
223 /// Calculates the offset from a pointer (convenience for
224 /// `.offset((count as isize).wrapping_neg())`).

Callers 15

__raygen__renderFunction · 0.80
renderFunction · 0.80
scale_bufferFunction · 0.80
postprocessFunction · 0.80
addFunction · 0.80
get_uncheckedMethod · 0.80
newMethod · 0.80
__raygen__renderFrameFunction · 0.80
LLVMRustAddPassFunction · 0.80
LLVMRustAddLibraryInfoFunction · 0.80

Calls 1

offsetMethod · 0.80

Tested by

no test coverage detected