2021-03-09 23:37:01 +00:00
|
|
|
use pyo3::prelude::*;
|
|
|
|
|
|
|
|
#[pyfunction]
|
|
|
|
fn generic_function<T>(value: T) {}
|
|
|
|
|
|
|
|
#[pyfunction]
|
|
|
|
fn impl_trait_function(impl_trait: impl AsRef<PyAny>) {}
|
|
|
|
|
2021-05-25 10:31:48 +00:00
|
|
|
#[pyfunction]
|
|
|
|
async fn async_function() {}
|
|
|
|
|
2021-11-23 15:25:01 +00:00
|
|
|
#[pyfunction]
|
|
|
|
fn required_arg_after_optional(optional: Option<isize>, required: isize) {}
|
|
|
|
|
2021-03-09 23:37:01 +00:00
|
|
|
fn main() {}
|