We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FnOnce
Functions like https://docs.rs/libpulse-binding/2.26.0/libpulse_binding/context/introspect/struct.Introspector.html#method.get_server_info take FnMut. The function shouldn't be called more than once, right? Then FnOnce is more general and appropriate.
FnMut
I guess this would apply to a lot of callbacks...
The text was updated successfully, but these errors were encountered:
Make "single-use" callbacks FnOnce
f847b6e
This is more general than `FnMut`, which is useful in some cases. jnqnfe#50
No branches or pull requests
Functions like https://docs.rs/libpulse-binding/2.26.0/libpulse_binding/context/introspect/struct.Introspector.html#method.get_server_info take
FnMut
. The function shouldn't be called more than once, right? ThenFnOnce
is more general and appropriate.I guess this would apply to a lot of callbacks...
The text was updated successfully, but these errors were encountered: