1 2 3 4 5 6 7 8 9 10 11 12
use pyo3::prelude::*; #[pyfunction] fn generic_function<T>(value: T) {} #[pyfunction] fn impl_trait_function(impl_trait: impl AsRef<PyAny>) {} #[pyfunction] async fn async_function() {} fn main() {}