You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If #137 gets merged, then Func will take no context while FuncMut takes a &mut context. For consistency, Func should be revised to take a &self context.
IMO, poly_fn! still should remain limited to defining Funcs 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 manual Func impl.
The text was updated successfully, but these errors were encountered:
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: