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

Method from

crates/ruff_python_formatter/src/string/mod.rs:52–57  ·  view source on GitHub ↗
(value: AnyStringFlags)

Source from the content-addressed store, hash-verified

50
51impl From<AnyStringFlags> for StringQuotes {
52 fn from(value: AnyStringFlags) -> Self {
53 Self {
54 triple: value.is_triple_quoted(),
55 quote_char: value.quote_style(),
56 }
57 }
58}
59
60impl TryFrom<QuoteStyle> for Quote {

Callers

nothing calls this directly

Calls 2

is_triple_quotedMethod · 0.45
quote_styleMethod · 0.45

Tested by

no test coverage detected