mozilla / cubeb-pulse-rs

ISC License
15 stars 17 forks source link

Add as_void_ptr() to hide *mut _ as *mut _ casts. #9

Open djg opened 7 years ago

djg commented 7 years ago

Maybe we could replace this as mut _ as mut _ with an as_mut_ptr or similar function on the Context too

nox commented 6 years ago

You could use foreign-types.

djg commented 6 years ago

Does foreign-types handle conversion of &T/&mut T to *mut c_void?

nox commented 6 years ago

The two traits in the crate are to convert from/to raw pointers, yes.