pyo3 0.12.3

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

#[pymodule]
fn module(_py: Python, m: &PyModule) -> PyResult<()> {
    #[pyfn(m, "with_module", pass_module)]
    fn fail(string: &str, module: &PyModule) -> PyResult<&str> {
        module.name()
    }
    Ok(())
}

fn main(){}