Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upUnboxed closures with all Clone members should implement Clone #23501
Comments
kmcallister
added
the
A-closures
label
Mar 19, 2015
This comment has been minimized.
This comment has been minimized.
|
This is important for iterators -- with this we can clone most iterator pipelines. In fact, most don't even need captures at all and would be the cheapest to clone. |
This comment has been minimized.
This comment has been minimized.
|
This would be good for situations in which one wants to box and store a closure in a small minority of cases. Would be good to be able to have something like |
This comment has been minimized.
This comment has been minimized.
|
Sounds like an nice idea. Unfortunately it would require |
arielb1
referenced this issue
Nov 14, 2015
Closed
Make Clone a lang-item and implement it for closures whose members are all Clone #1369
This comment has been minimized.
This comment has been minimized.
|
The expanded closure struct couldn't have the equivalent of 'derive(Clone)' On Sat, Nov 14, 2015, 9:32 AM arielb1 notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
|
|
brson
added
I-wishlist
T-lang
P-low
A-closures
and removed
A-closures
labels
May 4, 2017
Mark-Simulacrum
added
C-bug
C-feature-request
and removed
C-bug
I-wishlist
labels
Jul 22, 2017
This comment has been minimized.
This comment has been minimized.
|
I think this can be closed now that we have #44490 |
seanmonstar commentedMar 19, 2015
Similar to #19128