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

Method byte_len

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

Source from the content-addressed store, hash-verified

655
656 #[inline]
657 pub fn byte_len(&self) -> usize {
658 self.data.len()
659 }
660
661 #[inline]
662 pub fn is_empty(&self) -> bool {

Callers 12

strxfrmFunction · 0.45
executescriptMethod · 0.45
newMethod · 0.45
data_lenMethod · 0.45
handle_encode_errorMethod · 0.45
call_native_encode_errorFunction · 0.45
normalize_moduleFunction · 0.45
__sizeof__Method · 0.45
removeprefixMethod · 0.45
removesuffixMethod · 0.45
concat_in_placeMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected