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

Method get_bytes

crates/vm/src/builtins/str.rs:2247–2249  ·  view source on GitHub ↗
(&self, range: core::ops::Range<usize>)

Source from the content-addressed store, hash-verified

2245 }
2246
2247 fn get_bytes(&self, range: core::ops::Range<usize>) -> &Self {
2248 &self[range]
2249 }
2250
2251 fn get_chars(&self, range: core::ops::Range<usize>) -> &Self {
2252 rustpython_common::str::get_chars(self, range)

Callers 4

endswithMethod · 0.45
startswithMethod · 0.45
endswithMethod · 0.45
startswithMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected