Skip to content

How to Have Rust Structs that Implement Classes Hold Function Pointers #2700

Discussion options

You must be logged in to vote

Just use PyAny instead of PyFunction. PyFunction represents only a fraction of things that are "callable" in Python.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by scott-wilson
Comment options

You must be logged in to vote
1 reply
@birkenfeld
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants