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

Method drop

crates/common/src/lock/immutable_mutex.rs:60–63  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

58
59impl<R: RawMutex, T: ?Sized> Drop for ImmutableMappedMutexGuard<'_, R, T> {
60 fn drop(&mut self) {
61 // SAFETY: An ImmutableMappedMutexGuard always holds the lock
62 unsafe { self.raw.unlock() }
63 }
64}
65
66impl<R: RawMutex, T: fmt::Debug + ?Sized> fmt::Debug for ImmutableMappedMutexGuard<'_, R, T> {

Callers

nothing calls this directly

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected