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

Method as_bytes

crates/wtf8/src/lib.rs:850–852  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

848 /// Access raw bytes of WTF-8 data
849 #[inline]
850 pub const fn as_bytes(&self) -> &[u8] {
851 &self.bytes
852 }
853
854 /// Tries to convert the string to UTF-8 and return a `&str` slice.
855 ///

Callers 15

complete_optMethod · 0.45
count_charsFunction · 0.45
do_count_charsFunction · 0.45
push_strMethod · 0.45
into_string_lossyMethod · 0.45
eqMethod · 0.45
hashMethod · 0.45
to_string_lossyMethod · 0.45
splitMethod · 0.45
splitnMethod · 0.45
rsplitMethod · 0.45
rsplitnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected