-
Notifications
You must be signed in to change notification settings - Fork 68
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
Better support for non-Send types #80
Comments
I might be able to contribute, but would like to confirm that this is indeed something maintainers would like implemented. |
I don't understand why the lack of
|
Fair enough, the lack of |
* Added `return_const_st` for returning non-`Send` constants, similar to `returning_st`. * Added `return_once_st` for static methods. It was already available for non-static methods. Fixes #80
* Added `return_const_st` for returning non-`Send` constants, similar to `returning_st`. * Added `return_once_st` for static methods. It was already available for non-static methods. Fixes #80
* Added `return_const_st` for returning non-`Send` constants, similar to `returning_st`. * Added `return_once_st` for static methods. It was already available for non-static methods. Fixes #80
mockall
hasreturning_st
method to return non-Send types. However, this capability is not present for other parts of the API:return_const_st
withf_st
This is actually a bit of a pain for me currently as I'm mocking C functions that accept / return pointers. Currently I have to give up on
return_const
and pass pointers casted withas usize
towithf
, which is ugly.The text was updated successfully, but these errors were encountered: