passing opaque pointers #11
-
I want to accomplish something like the following:
where ctx is some opaque struct pointer that python needs not be aware of (not accessing private members or anything) using the following compiles fine, but complains when
thus
crashes with the error - I looked at Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need a |
Beta Was this translation helpful? Give feedback.
You need a
nb::class_
declaration forcontext_state_struct
. No need to provide a constructor/method/fields.