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

Method back_skip

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

Source from the content-addressed store, hash-verified

79
80 #[inline]
81 fn back_skip(cursor: &mut StringCursor, n: usize) {
82 cursor.position -= n;
83 unsafe { cursor.ptr = cursor.ptr.sub(n) };
84 }
85}
86
87impl StrDrive for &str {

Callers

nothing calls this directly

Calls 2

next_code_point_reverseFunction · 0.70
subMethod · 0.45

Tested by

no test coverage detected