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 upRFC: Non-selfexhausting Drain #2369
Conversation
Emerentius
added some commits
Mar 24, 2018
Centril
added
the
T-libs
label
Mar 24, 2018
This comment has been minimized.
This comment has been minimized.
|
Another possible alternative: a method on the Drain type like |
SimonSapin
referenced this pull request
Mar 28, 2018
Open
Tracking issue for Vec::drain_filter and LinkedList::drain_filter #43244
This comment has been minimized.
This comment has been minimized.
|
This RFC came up when the libs team discussed the unstable We’d like to see experimentation to attempt to generalize into a smaller API surface various combinations of draining:
Possibilities might include "overloading" a method by making it generic, or a builder pattern. (One constraint is that the This would likely be in a new RFC rather than taking this one as-is: @rfcbot fcp postpone |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Mar 28, 2018
•
|
Team member @SimonSapin has proposed to postpone this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
rfcbot
added
the
proposed-final-comment-period
label
Mar 28, 2018
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Mar 29, 2018
|
|
rfcbot
added
final-comment-period
and removed
proposed-final-comment-period
labels
Mar 29, 2018
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Apr 8, 2018
|
The final comment period is now complete. |
Centril
added
the
postponed
label
Apr 9, 2018
This comment has been minimized.
This comment has been minimized.
|
This RFC is now postponed per the review above. Thanks to @Emerentius! |
Emerentius commentedMar 24, 2018
•
edited
Rendered
Add
*_nonexhausting()variants for everydrain()that do not eagerly consume residual items on drop of theDrainNonexhaustingstruct.One of two RFCs for splitting the functionality of
draininto two orthogonal APIs.Other RFC: #2370