Join GitHub today
Custom closure (and trait) "kind" bounds #3569
Needed to make
The way I see it,
Can we check for this and support putting closures in arcs?
EDIT: Per @bstrie's request, here is a list of what how the kinds work. For each kind bound
Oh, I mean they should be able to satisfy const requirements. Even if they have mutable data structures in their environment I think the closures themselves should still be const. Only if you can somehow change the interior of the environment, such as with @mut/&mut, should they be non-const. (I guess you can put those in fn~s just fine.)
Currently the problem is you cannot put them in ARCs at all.