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

Method read_str_borrow

crates/compiler-core/src/marshal.rs:155–157  ·  view source on GitHub ↗
(&mut self, len: u32)

Source from the content-addressed store, hash-verified

153 fn read_slice_borrow(&mut self, n: u32) -> Result<&'a [u8]>;
154
155 fn read_str_borrow(&mut self, len: u32) -> Result<&'a str> {
156 Ok(core::str::from_utf8(self.read_slice_borrow(len)?)?)
157 }
158}
159
160impl Read for &[u8] {

Callers 1

read_entryFunction · 0.80

Implementers 1

marshal.rscrates/compiler-core/src/marshal.rs

Calls 1

read_slice_borrowMethod · 0.80

Tested by

no test coverage detected