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

Method replace

crates/vm/src/object/core.rs:942–944  ·  view source on GitHub ↗
(&self, d: PyDictRef)

Source from the content-addressed store, hash-verified

940
941 #[inline]
942 pub fn replace(&self, d: PyDictRef) -> PyDictRef {
943 core::mem::replace(&mut self.d.write(), d)
944 }
945
946 /// Consume the InstanceDict and return the inner PyDictRef.
947 #[inline]

Callers 11

multiarchFunction · 0.45
setprofileFunction · 0.45
settraceFunction · 0.45
_settraceallthreadsFunction · 0.45
_setprofileallthreadsFunction · 0.45
signalFunction · 0.45
writeMethod · 0.45
clearMethod · 0.45
setMethod · 0.45

Calls 2

replaceFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected