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

Method peek_byte

crates/codegen/src/string_parser.rs:67–69  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

65
66 #[inline]
67 fn peek_byte(&self) -> Option<u8> {
68 self.source[self.cursor..].as_bytes().first().copied()
69 }
70
71 fn parse_unicode_literal(&mut self, literal_number: usize) -> Result<CodePoint, LexicalError> {
72 let mut p: u32 = 0u32;

Callers 3

parse_octetMethod · 0.45
parse_escaped_charMethod · 0.45
parse_fstring_middleMethod · 0.45

Calls 2

firstMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected