]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #27545 - apasel422:btree-range, r=Gankro
authorbors <bors@rust-lang.org>
Thu, 6 Aug 2015 03:40:42 +0000 (03:40 +0000)
committerbors <bors@rust-lang.org>
Thu, 6 Aug 2015 03:40:42 +0000 (03:40 +0000)
This permits collections with `String` keys to be ranged over with
`&str` bounds. The `K` defaults for `Min` and `Max` permit the default
type parameter fallback to work with things like

```rust
use std::collections::{BTreeSet, Bound};
let set = BTreeSet::<String>::new();
set.range(Bound::Included("a"), Bound::Unbounded);
```

Without the defaults, the type of the maximum bound would be
unconstrained.

r? @Gankro


Trivial merge