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

Method drop

crates/vm/src/object/core.rs:453–455  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

451
452 impl Drop for WeakrefLockGuard {
453 fn drop(&mut self) {
454 LOCKS[self.idx].store(0, Ordering::Release);
455 }
456 }
457
458 pub(super) fn lock(addr: usize) -> WeakrefLockGuard {

Callers

nothing calls this directly

Calls 6

drop_innerMethod · 0.80
storeMethod · 0.45
drainMethod · 0.45
decMethod · 0.45
is_borrowedMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected