MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / fmt

Method fmt

python3-sys/build.rs:15–23  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

13
14impl fmt::Display for PythonVersion {
15 fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
16 self.major.fmt(f)?;
17 f.write_str(".")?;
18 match self.minor {
19 Some(minor) => minor.fmt(f)?,
20 None => f.write_str("*")?,
21 };
22 Ok(())
23 }
24}
25
26const CFG_KEY: &str = "py_sys_config";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected