-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
container/iterator improvements + small changes #8582
Conversation
Hm. Is |
@graydon: it lets you work around overflow, since |
Is that a common enough use case to have a function in std for it? It seems like at that point you should just have a local |
I want to get rid of the old range functions in I do expect iterating over [0 .. u8::max_value], [0 .. u16::max_value], etc. to be more than just a corner case though so I think it's worth including. |
FWIW, I'm with @thestinger on range_inclusive being useful for iterating over all of u8 or u16, and to be honest I prefer it to adding +1 to the top of the range even outside of those usecases. |
Closes #4960
this works on any container with a mutable double-ended iterator
@thestinger and I talked about this in IRC. There are a couple of use cases for a persistent map, but they aren't common enough to justify inclusion in libextra and vary enough that they would require multiple implementations anyways. In any case, fun_treemap in its current state is basically useless.
…earth Changelog for Rust 1.60.0 🦀 (Kudos to everyone who contributed!) As always, I'm impressed by how much stuff happened in just one release. Seriously, kudos to everyone who contributed. changelog: none
5f3a637 r=huonw
934a5eb r=thestinger
0f6e90a r=cmr