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

Method to_char

crates/ruff_python_formatter/src/string/docstring.rs:1494–1499  ·  view source on GitHub ↗

Convert the fence kind to the actual character used to build the fence.

(self)

Source from the content-addressed store, hash-verified

1492impl MarkdownFenceKind {
1493 /// Convert the fence kind to the actual character used to build the fence.
1494 fn to_char(self) -> char {
1495 match self {
1496 MarkdownFenceKind::Backtick => '`',
1497 MarkdownFenceKind::Tilde => '~',
1498 }
1499 }
1500}
1501
1502/// A single line in a code example found in a docstring.

Callers 1

is_endMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected