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

Function is_not_none_or_zero

python27-sys/build.rs:175–180  ·  view source on GitHub ↗
(val: Option<&String>)

Source from the content-addressed store, hash-verified

173}
174
175fn is_not_none_or_zero(val: Option<&String>) -> bool {
176 match val {
177 Some(v) => v != "0",
178 None => false,
179 }
180}
181
182/// Run a python script using the specified interpreter binary.
183fn run_python_script(interpreter: &str, script: &str) -> Result<String, String> {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected