MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / bump

Method bump

std/re/src/main/parser.rs:34–38  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

32 fn peek(&self) -> Option<char> { self.p.get(self.pos).copied() }
33 fn at(&self, i: usize) -> Option<char> { self.p.get(self.pos + i).copied() }
34 fn bump(&mut self) -> Option<char> {
35 let c = self.peek();
36 if c.is_some() { self.pos += 1; }
37 c
38 }
39 fn err(&self, msg: &'static str) -> ParseError { ParseError { msg, pos: self.pos } }
40
41 fn expect(&mut self, c: char) -> Result<(), ParseError> {

Callers 13

expectMethod · 0.80
alternationMethod · 0.80
quantifiedMethod · 0.80
try_boundMethod · 0.80
read_intMethod · 0.80
atomMethod · 0.80
groupMethod · 0.80
read_nameMethod · 0.80
read_flagsMethod · 0.80
classMethod · 0.80
class_escapeMethod · 0.80
escapeMethod · 0.80

Calls 1

peekMethod · 0.45

Tested by

no test coverage detected