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

Method fmt

crates/common/src/str.rs:131–138  ·  view source on GitHub ↗
(&self, f: &mut core::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

129
130impl fmt::Debug for StrLen {
131 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
132 let len = self.0.load(Relaxed);
133 if len == usize::MAX {
134 f.write_str("<uncomputed>")
135 } else {
136 len.fmt(f)
137 }
138 }
139}
140
141impl StrLen {

Callers

nothing calls this directly

Calls 3

loadMethod · 0.45
write_strMethod · 0.45
to_u32Method · 0.45

Tested by

no test coverage detected