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

Method to_pyresult

crates/vm/src/protocol/iter.rs:204–209  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

202
203impl ToPyResult for PyIterReturn {
204 fn to_pyresult(self, vm: &VirtualMachine) -> PyResult {
205 match self {
206 Self::Return(obj) => Ok(obj),
207 Self::StopIteration(v) => Err(vm.new_stop_iteration(v)),
208 }
209 }
210}
211
212impl ToPyResult for PyResult<PyIterReturn> {

Callers 5

get_itemMethod · 0.45
keysMethod · 0.45
valuesMethod · 0.45
itemsMethod · 0.45
method_output_as_listMethod · 0.45

Calls 2

new_stop_iterationMethod · 0.80
ErrClass · 0.50

Tested by

no test coverage detected