Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ get_range
Method
get_range
crates/compiler-source/src/lib.rs:27–29 ·
view source on GitHub ↗
(&'src self, range: TextRange)
Source
from the content-addressed store, hash-verified
25
}
26
27
pub fn get_range(&
'src self, range: TextRange) -> &'
src str {
28
&self.text[range.start().to_usize()..range.end().to_usize()]
29
}
30
}
31
32
pub struct SourceCodeOwned {
Callers
nothing calls this directly
Calls
3
to_usize
Method · 0.45
start
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected