Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
djg opened this issue Jun 1, 2017 · 3 comments
Open

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

djg opened this issue Jun 1, 2017 · 3 comments
Assignees

Comments

@djg
Copy link
Collaborator

djg commented Jun 1, 2017

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

@djg djg self-assigned this Jun 1, 2017
@nox
Copy link
Contributor

nox commented Nov 28, 2017

You could use foreign-types.

@djg
Copy link
Collaborator Author

djg commented Dec 6, 2017

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

@nox
Copy link
Contributor

nox commented Dec 6, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants