MCPcopy Index your code
hub / github.com/RustPython/RustPython / as_ptr

Method as_ptr

crates/common/src/boxvec.rs:326–328  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

324 /// Return a raw pointer to the vector's buffer.
325 #[inline]
326 pub fn as_ptr(&self) -> *const T {
327 self.xs.as_ptr().cast()
328 }
329
330 /// Return a raw mutable pointer to the vector's buffer.
331 #[inline]

Callers 15

evalFunction · 0.45
try_extend_from_sliceMethod · 0.45
derefMethod · 0.45
dropMethod · 0.45
setMethod · 0.45
fopenFunction · 0.45
openFunction · 0.45
openatFunction · 0.45
nextMethod · 0.45
slice_uncheckedFunction · 0.45
replace_opMethod · 0.45

Calls 1

castMethod · 0.45

Tested by

no test coverage detected