Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_repr
Function · 0.45
format_internal
Function · 0.45
write_syntaxerror
Method · 0.45
__str__
Method · 0.45
full_data
Method · 0.45
handle_encode_error
Method · 0.45
call_native_encode_error
Function · 0.45
call_native_translate_error
Function · 0.45
key_eq
Method · 0.45
spec_format_string
Function · 0.45
execute_instruction
Method · 0.45
object_function_str
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected