Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
871
impl DictKey for Py<PyStr> {
Callers
3
get_item
Method · 0.80
set_item
Method · 0.80
del_item
Method · 0.80
Calls
7
try_to_primitive
Method · 0.80
try_index
Method · 0.80
as_pystr
Method · 0.80
Err
Class · 0.50
as_object
Method · 0.45
as_str
Method · 0.45
as_slice
Method · 0.45
Tested by
no test coverage detected