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

Method adjust_cursor

crates/sre_engine/src/string.rs:45–48  ·  view source on GitHub ↗
(&self, cursor: &mut StringCursor, n: usize)

Source from the content-addressed store, hash-verified

43
44 #[inline]
45 fn adjust_cursor(&self, cursor: &mut StringCursor, n: usize) {
46 cursor.position = n;
47 cursor.ptr = self[n..].as_ptr();
48 }
49
50 #[inline]
51 fn advance(cursor: &mut StringCursor) -> u32 {

Callers 3

resetMethod · 0.80
py_matchMethod · 0.80
searchMethod · 0.80

Calls 2

skipFunction · 0.85
as_ptrMethod · 0.45

Tested by

no test coverage detected