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

Method skip_bytes

crates/codegen/src/string_parser.rs:40–44  ·  view source on GitHub ↗
(&mut self, bytes: usize)

Source from the content-addressed store, hash-verified

38
39 #[inline]
40 fn skip_bytes(&mut self, bytes: usize) -> &str {
41 let skipped_str = &self.source[self.cursor..self.cursor + bytes];
42 self.cursor += bytes;
43 skipped_str
44 }
45
46 /// Returns the next byte in the string, if there is one.
47 ///

Callers 3

parse_unicode_nameMethod · 0.80
parse_fstring_middleMethod · 0.80
parse_stringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected