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

Method itemsize

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

Source from the content-addressed store, hash-verified

581
582 #[pygetset]
583 fn itemsize(&self, vm: &VirtualMachine) -> PyResult<usize> {
584 self.try_not_released(vm).map(|_| self.desc.itemsize)
585 }
586
587 #[pygetset]
588 fn ndim(&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