Rust -> Python bindings
Overview
Adding a new binding
Type Conversions
Common Type Conversions
let py_int: &Bound<'_, PyInt> = ...;
let biguint: BigUint = py_int.extract()?;Error Handling
Common Patterns
Example Implementation
Registering Your Function
Using the Bindings
Testing
Common Pitfalls
Available Utilities
Building and Testing
Best Practices
Last updated
Was this helpful?