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

Method from

crates/ruff_python_parser/src/string.rs:32–39  ·  view source on GitHub ↗
(string: StringType)

Source from the content-addressed store, hash-verified

30
31impl From<StringType> for Expr {
32 fn from(string: StringType) -> Self {
33 match string {
34 StringType::Str(node) => Expr::from(node),
35 StringType::Bytes(node) => Expr::from(node),
36 StringType::FString(node) => Expr::from(node),
37 StringType::TString(node) => Expr::from(node),
38 }
39 }
40}
41
42#[derive(Debug, Clone, Copy, PartialEq, Eq)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected