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

Method readonly

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

Source from the content-addressed store, hash-verified

576
577 #[pygetset]
578 fn readonly(&self, vm: &VirtualMachine) -> PyResult<bool> {
579 self.try_not_released(vm).map(|_| self.desc.readonly)
580 }
581
582 #[pygetset]
583 fn itemsize(&self, vm: &VirtualMachine) -> PyResult<usize> {

Callers

nothing calls this directly

Calls 2

try_not_releasedMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected