Replies: 2 comments 2 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
I hit this recently too where I was trying to create the equivalent of a string enum in Rust that I wanted to use in both Rust and Python. I started with a basic rust enum and was trying to update the IntoPyObject. This results in a duplicate implementation error. However, without |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to implement a custom IntoPyObject for a pyclass object?
When I do this I get the error "conflicting implementations of trait
pyo3::IntoPyObject<'_>
for typeenums::ValueTypeEnum
"Beta Was this translation helpful? Give feedback.
All reactions