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

Method char_len

crates/common/src/str.rs:302–307  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

300
301 #[inline]
302 pub fn char_len(&self) -> usize {
303 match self.len.0.load(Relaxed) {
304 usize::MAX => self._compute_char_len(),
305 len => len,
306 }
307 }
308
309 #[cold]
310 fn _compute_char_len(&self) -> usize {

Callers

nothing calls this directly

Calls 2

_compute_char_lenMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected