rochacbruno/rustpythonexample
Edit src/ What we need to do: Import all macros from cpython crate. Take Python and PyResult types from cpython in to our lib scope. Write the count_doubles function implementation in Rust, note that this is very similar to the Pure Python version except for:. It takes a Python as first argument, which is a reference to the Python Interpreter and allows Rust to use the .
![whatsapp](/images/whatsapp.png)