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

Method deref

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

Source from the content-addressed store, hash-verified

339
340 #[inline]
341 fn deref(&self) -> &[T] {
342 unsafe { slice::from_raw_parts(self.as_ptr(), self.len()) }
343 }
344}
345
346impl<T> DerefMut for BoxVec<T> {

Callers

nothing calls this directly

Calls 2

as_ptrMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected