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

Method next_byte

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

Source from the content-addressed store, hash-verified

50 /// When the next byte is a part of a multi-byte character.
51 #[inline]
52 fn next_byte(&mut self) -> Option<u8> {
53 self.source[self.cursor..].as_bytes().first().map(|&byte| {
54 self.cursor += 1;
55 byte
56 })
57 }
58
59 #[inline]
60 fn next_char(&mut self) -> Option<char> {

Callers 2

parse_octetMethod · 0.80
parse_escaped_charMethod · 0.80

Calls 3

mapMethod · 0.45
firstMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected