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

Method next_char

crates/codegen/src/string_parser.rs:60–64  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

58
59 #[inline]
60 fn next_char(&mut self) -> Option<char> {
61 self.source[self.cursor..].chars().next().inspect(|c| {
62 self.cursor += c.len_utf8();
63 })
64 }
65
66 #[inline]
67 fn peek_byte(&self) -> Option<u8> {

Callers 3

parse_unicode_literalMethod · 0.80
parse_unicode_nameMethod · 0.80
parse_escaped_charMethod · 0.80

Calls 2

charsMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected