MCPcopy Create free account
hub / github.com/astral-sh/ruff / fmt

Method fmt

crates/ruff_python_parser/src/string.rs:75–80  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

73
74impl fmt::Display for InterpolatedStringKind {
75 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
76 match self {
77 InterpolatedStringKind::FString => f.write_str("f-string"),
78 InterpolatedStringKind::TString => f.write_str("t-string"),
79 }
80 }
81}
82
83enum EscapedChar {

Callers

nothing calls this directly

Calls 1

write_strMethod · 0.45

Tested by

no test coverage detected