-
Notifications
You must be signed in to change notification settings - Fork 56
-
Notifications
You must be signed in to change notification settings - Fork 56
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 a &self context to Func #138
Labels
Milestone
Comments
I'm working on a proposal to add generic closures to Rust itself in any case so that seems OK. :) |
That sounds boss. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If #137 gets merged, then
Func
will take no context whileFuncMut
takes a&mut
context. For consistency,Func
should be revised to take a&self
context.IMO,
poly_fn!
still should remain limited to definingFunc
s with unit context, because it is too complicated to define an ergonomical grammar for a macro that allows the function to capture anyhing. In other words, to take advantage of this new feature will require a manualFunc
impl.The text was updated successfully, but these errors were encountered: