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

Method fmt

crates/vm/src/builtins/str.rs:81–87  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

79
80impl fmt::Debug for PyStr {
81 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
82 f.debug_struct("PyStr")
83 .field("value", &self.as_wtf8())
84 .field("kind", &self.data.kind())
85 .field("hash", &self.hash)
86 .finish()
87 }
88}
89
90impl AsRef<str> for PyStr {

Callers

nothing calls this directly

Calls 5

finishMethod · 0.45
as_wtf8Method · 0.45
kindMethod · 0.45
write_strMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected