Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ create_cursor
Method
create_cursor
crates/sre_engine/src/string.rs:37–42 ·
view source on GitHub ↗
(&self, n: usize)
Source
from the content-addressed store, hash-verified
35
36
#[inline]
37
fn create_cursor(&self, n: usize) -> StringCursor {
38
StringCursor {
39
ptr: self[n..].as_ptr(),
40
position: n,
41
}
42
}
43
44
#[inline]
45
fn adjust_cursor(&self, cursor: &mut StringCursor, n: usize) {
Callers
nothing calls this directly
Calls
3
skip
Function · 0.85
as_ptr
Method · 0.45
as_bytes
Method · 0.45
Tested by
no test coverage detected