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

Method index

crates/vm/src/dict_inner.rs:72–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 }
71
72 const fn index(self) -> Option<usize> {
73 if self.0 >= 0 {
74 Some(self.0 as usize)
75 } else {
76 None
77 }
78 }
79}
80
81#[derive(Clone)]

Callers 9

insertMethod · 0.45
containsMethod · 0.45
hint_for_keyMethod · 0.45
_get_innerMethod · 0.45
delete_or_insertMethod · 0.45
setdefaultMethod · 0.45
setdefault_entryMethod · 0.45
lookupMethod · 0.45
pop_inner_ifMethod · 0.45

Calls 1

SomeClass · 0.50

Tested by

no test coverage detected