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

Method release

crates/vm/src/builtins/memory.rs:561–565  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

559
560 #[pymethod]
561 pub fn release(&self) {
562 if self.released.compare_exchange(false, true).is_ok() {
563 self.buffer.release();
564 }
565 }
566
567 #[pygetset]
568 fn obj(&self, vm: &VirtualMachine) -> PyResult<PyObjectRef> {

Callers 2

__exit__Method · 0.45
memory.rsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected