MCPcopy Create free account
hub / github.com/PyO3/pyo3 / trailing_optional

Function trailing_optional

tests/test_pyfunction.rs:58–60  ·  view source on GitHub ↗
(x: i32, y: Option<i32>)

Source from the content-addressed store, hash-verified

56
57 #[pyfunction]
58 fn trailing_optional(x: i32, y: Option<i32>) -> String {
59 format!("x={x:?} y={y:?}")
60 }
61
62 Python::attach(|py| {
63 let f = wrap_pyfunction!(trailing_optional)(py).unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected