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

Method to_char

crates/ruff_python_formatter/src/string/docstring.rs:1497–1502  ·  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

1495impl MarkdownFenceKind {
1496 /// Convert the fence kind to the actual character used to build the fence.
1497 fn to_char(self) -> char {
1498 match self {
1499 MarkdownFenceKind::Backtick => '`',
1500 MarkdownFenceKind::Tilde => '~',
1501 }
1502 }
1503}
1504
1505/// 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