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

Method obj

crates/vm/src/builtins/memory.rs:568–570  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

566
567 #[pygetset]
568 fn obj(&self, vm: &VirtualMachine) -> PyResult<PyObjectRef> {
569 self.try_not_released(vm).map(|_| self.buffer.obj.clone())
570 }
571
572 #[pygetset]
573 fn nbytes(&self, vm: &VirtualMachine) -> PyResult<usize> {

Callers 2

_containsMethod · 0.45
copyMethod · 0.45

Calls 3

try_not_releasedMethod · 0.80
mapMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected