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

Method fmt

python27-sys/build.rs:18–26  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected