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

Method encode_wtf8

crates/wtf8/src/lib.rs:172–174  ·  view source on GitHub ↗
(self, dst: &mut [u8])

Source from the content-addressed store, hash-verified

170 }
171
172 pub fn encode_wtf8(self, dst: &mut [u8]) -> &mut Wtf8 {
173 unsafe { Wtf8::from_mut_bytes_unchecked(encode_utf8_raw(self.value, dst)) }
174 }
175
176 pub const fn len_wtf8(&self) -> usize {
177 len_utf8(self.value)

Callers 5

handle_encode_errorMethod · 0.80
fromMethod · 0.80
pushMethod · 0.80
insertMethod · 0.80
contains_code_pointMethod · 0.80

Calls 1

encode_utf8_rawFunction · 0.85

Tested by

no test coverage detected