MCPcopy Create free account
hub / github.com/astral-sh/ruff / next_byte

Method next_byte

crates/ruff_python_parser/src/string.rs:137–142  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

135 /// When the next byte is a part of a multi-byte character.
136 #[inline]
137 fn next_byte(&mut self) -> Option<u8> {
138 self.source.as_bytes()[self.cursor..].first().map(|&byte| {
139 self.cursor += 1;
140 byte
141 })
142 }
143
144 #[inline]
145 fn next_char(&mut self) -> Option<char> {

Callers 3

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