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

Method key_as_isize

crates/vm/src/dict_inner.rs:866–868  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

864
865 #[inline]
866 fn key_as_isize(&self, vm: &VirtualMachine) -> PyResult<isize> {
867 self.try_index(vm)?.try_to_primitive(vm)
868 }
869}
870
871impl DictKey for Py<PyStr> {

Callers 3

get_itemMethod · 0.80
set_itemMethod · 0.80
del_itemMethod · 0.80

Calls 7

try_to_primitiveMethod · 0.80
try_indexMethod · 0.80
as_pystrMethod · 0.80
ErrClass · 0.50
as_objectMethod · 0.45
as_strMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected