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

Method string

crates/vm/src/codecs.rs:608–610  ·  view source on GitHub ↗
(&self, s: Wtf8Buf)

Source from the content-addressed store, hash-verified

606 type BytesBuf = PyBytesRef;
607
608 fn string(&self, s: Wtf8Buf) -> Self::StrBuf {
609 self.vm.ctx.new_str(s)
610 }
611
612 fn bytes(&self, b: Vec<u8>) -> Self::BytesBuf {
613 self.vm.ctx.new_bytes(b)

Callers 5

argvFunction · 0.45
parse_argsFunction · 0.45
handle_decode_errorMethod · 0.45
handle_encode_errorMethod · 0.45
handle_decode_errorMethod · 0.45

Calls 1

new_strMethod · 0.45

Tested by

no test coverage detected