pyo3 0.18.3

Bindings to Python interpreter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use pyo3::prelude::*;

#[pyfunction]
fn invalid_attribute(#[pyo3(get)] param: String) {}

#[pyfunction]
fn from_py_with_no_value(#[pyo3(from_py_with)] param: String) {}

#[pyfunction]
fn from_py_with_string(#[pyo3("from_py_with")] param: String) {}

#[pyfunction]
fn from_py_with_value_not_a_string(#[pyo3(from_py_with = func)] param: String) {}

fn main() {}