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

Method mapping_unchecked

crates/vm/src/protocol/mapping.rs:74–76  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

72
73impl PyObject {
74 pub fn mapping_unchecked(&self) -> PyMapping<'_> {
75 PyMapping { obj: self }
76 }
77
78 pub fn try_mapping(&self, vm: &VirtualMachine) -> PyResult<PyMapping<'_>> {
79 let mapping = self.mapping_unchecked();

Callers 10

mappingMethod · 0.80
length_optMethod · 0.80
set_itemMethod · 0.80
del_itemMethod · 0.80
_ass_sliceMethod · 0.80
try_mappingMethod · 0.80
validate_globals_dictMethod · 0.80
py_newMethod · 0.80
callMethod · 0.80
try_to_boolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected