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

Method as_wtf8

crates/vm/src/builtins/str.rs:470–472  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

468
469 #[inline]
470 pub const fn as_wtf8(&self) -> &Wtf8 {
471 self.data.as_wtf8()
472 }
473
474 pub const fn as_bytes(&self) -> &[u8] {
475 self.data.as_wtf8().as_bytes()

Callers 15

collection_reprFunction · 0.45
format_internalFunction · 0.45
write_syntaxerrorMethod · 0.45
__str__Method · 0.45
full_dataMethod · 0.45
handle_encode_errorMethod · 0.45
call_native_encode_errorFunction · 0.45
key_eqMethod · 0.45
spec_format_stringFunction · 0.45
execute_instructionMethod · 0.45
object_function_strMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected