Advertisement
Voodlaz

Untitled

Jul 5th, 2020
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.30 KB | None | 0 0
  1. use pyo3::prelude::*;
  2. use pyo3::{wrap_pyfunction, import_exception};
  3. use pyo3::exceptions::*;
  4. use pyo3::types::*;
  5.  
  6. #[pyfunction]
  7. fn arg(m: &PyFloat) -> &PyFloat {m}
  8.  
  9. #[pymodule]
  10. fn rplib(py: Python, module: &PyModule) -> PyResult<()> {
  11.     module.add_wrapped(wrap_pyfunction!(arg))?;
  12.     Ok(())
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement