-
When compiling this code #[pyclass]
struct CelProgram {
program: Program
} I'm running into the following error:
I had a temporary solution for it, which worked unsafe impl Send for CelProgram {} but it feels like a hack to me, at least without proper understanding, and I would like to finally figure out how to do this. In this case I don't really need this Here's an example Python code of how it's going to be used: cel_program = CelProgram("1 == 1")
cel_program.evaluate({}) I feel like using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
https://pyo3.rs/v0.19.2/class.html?highlight=unsendable#customizing-the-class |
Beta Was this translation helpful? Give feedback.
-
This is your type, right? You can use
Yeah, your approach is completely wrong. Do not do this. |
Beta Was this translation helpful? Give feedback.
This is your type, right? You can use
Arc
instead ofRc
.Yeah, your approach is completely wrong. Do not do this.