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

Method items

crates/vm/src/protocol/mapping.rs:182–188  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

180 }
181
182 pub fn items(self, vm: &VirtualMachine) -> PyResult {
183 if let Some(dict) = self.obj.downcast_ref_if_exact::<PyDict>(vm) {
184 PyDictItems::new(dict.to_owned()).to_pyresult(vm)
185 } else {
186 self.method_output_as_list(identifier!(vm, items), vm)
187 }
188 }
189
190 fn method_output_as_list(
191 self,

Callers 1

envp_from_dictFunction · 0.45

Calls 4

newFunction · 0.85
method_output_as_listMethod · 0.80
to_pyresultMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected