Open djg opened 7 years ago
Maybe we could replace this as mut _ as mut _ with an as_mut_ptr or similar function on the Context too
You could use foreign-types.
foreign-types
Does foreign-types handle conversion of &T/&mut T to *mut c_void?
&T/&mut T
*mut c_void
The two traits in the crate are to convert from/to raw pointers, yes.
Maybe we could replace this as mut _ as mut _ with an as_mut_ptr or similar function on the Context too