MCPcopy Create free account
hub / github.com/davidblewett/rure-python / next

Method next

regex/src/dfa.rs:299–310  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

297 type Item = usize;
298
299 fn next(&mut self) -> Option<usize> {
300 if self.data.is_empty() {
301 return None;
302 }
303 let (delta, nread) = read_vari32(self.data);
304 let base = self.base as i32 + delta;
305 debug_assert!(base >= 0);
306 debug_assert!(nread > 0);
307 self.data = &self.data[nread..];
308 self.base = base as usize;
309 Some(self.base)
310 }
311}
312
313impl State {

Callers 4

pFunction · 0.45
next_stateMethod · 0.45
c_concatMethod · 0.45
compileMethod · 0.45

Calls 2

read_vari32Function · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected