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

Method drop

crates/common/src/boxvec.rs:20–24  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

18
19impl<T> Drop for BoxVec<T> {
20 fn drop(&mut self) {
21 self.clear();
22
23 // MaybeUninit inhibits array's drop
24 }
25}
26
27macro_rules! panic_oob {

Callers

nothing calls this directly

Calls 9

set_lenMethod · 0.80
get_unchecked_ptrMethod · 0.80
as_mut_ptrMethod · 0.80
copyFunction · 0.50
clearMethod · 0.45
lenMethod · 0.45
as_mutMethod · 0.45
addMethod · 0.45
as_ptrMethod · 0.45

Tested by

no test coverage detected