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

Method next

crates/sre_engine/src/engine.rs:243–257  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

241 type Item = ();
242
243 fn next(&mut self) -> Option<Self::Item> {
244 if self.req.start > self.req.end {
245 return None;
246 }
247
248 self.state.reset(&self.req, self.req.start);
249 if !self.state.search(self.req) {
250 return None;
251 }
252
253 self.req.must_advance = self.state.cursor.position == self.state.start;
254 self.req.start = self.state.cursor.position;
255
256 Some(())
257 }
258}
259
260#[derive(Debug, Clone, Copy)]

Callers 2

lower_unicodeFunction · 0.45
upper_unicodeFunction · 0.45

Calls 3

SomeClass · 0.50
resetMethod · 0.45
searchMethod · 0.45

Tested by

no test coverage detected