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

Method next

crates/vm/src/builtins/iter.rs:112–117  ·  view source on GitHub ↗
(&mut self, f: F)

Source from the content-addressed store, hash-verified

110 }
111
112 pub fn next<F>(&mut self, f: F) -> PyResult<PyIterReturn>
113 where
114 F: FnOnce(&T, usize) -> PyResult<PyIterReturn>,
115 {
116 self._next(f, |zelf| zelf.position += 1)
117 }
118
119 pub fn rev_next<F>(&mut self, f: F) -> PyResult<PyIterReturn>
120 where

Callers 3

slot_newMethod · 0.45
slot_newMethod · 0.45
find_signatureFunction · 0.45

Calls 8

sequence_uncheckedMethod · 0.80
bool_eqMethod · 0.80
_nextMethod · 0.45
lockMethod · 0.45
get_itemMethod · 0.45
readMethod · 0.45
cloneMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected