MCPcopy Index your code
hub / github.com/RustPython/RustPython / from_str

Method from_str

crates/common/src/format.rs:1083–1085  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

1081impl FromStr for FormatSpec {
1082 type Err = FormatSpecError;
1083 fn from_str(s: &str) -> Result<Self, Self::Err> {
1084 Self::parse(s)
1085 }
1086}
1087
1088#[derive(Debug, PartialEq)]

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
parseFunction · 0.50
is_emptyMethod · 0.45
mapMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected