use pyo3::prelude::*; use pyo3::types::PyString; #[pyfunction] fn generic_function(value: T) {} #[pyfunction] fn impl_trait_function(impl_trait: impl AsRef) {} #[pyfunction] fn wildcard_argument(_: i32) {} #[pyfunction] fn destructured_argument((a, b): (i32, i32)) {} #[pyfunction] fn function_with_required_after_option(_opt: Option, _x: i32) {} #[pyfunction(pass_module)] fn pass_module_but_no_arguments<'py>() {} #[pyfunction(pass_module)] fn first_argument_not_module<'a, 'py>( string: &str, module: &'a Bound<'_, PyModule>, ) -> PyResult> { module.name() } fn main() {}