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

Method get_bytes

crates/vm/src/bytes_inner.rs:1063–1065  ·  view source on GitHub ↗
(&self, range: core::ops::Range<usize>)

Source from the content-addressed store, hash-verified

1061 }
1062
1063 fn get_bytes(&self, range: core::ops::Range<usize>) -> &Self {
1064 &self[range]
1065 }
1066
1067 fn get_chars(&self, range: core::ops::Range<usize>) -> &Self {
1068 &self[range]

Callers 3

py_removeprefixMethod · 0.45
py_removesuffixMethod · 0.45
py_bytes_splitlinesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected