diff options
| author | Andrew Paseltiner <apaseltiner@gmail.com> | 2015-08-05 15:12:10 -0400 |
|---|---|---|
| committer | Andrew Paseltiner <apaseltiner@gmail.com> | 2015-08-05 16:06:12 -0400 |
| commit | 4fdeb353ceecd17fd7894bd7968d266a437d652e (patch) | |
| tree | 66419e4434dcc186bae7b3b71c462164ceb98974 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | d03456183e85fe7bd465bbe7c8f67885a2528444 (diff) | |
| download | rust-4fdeb353ceecd17fd7894bd7968d266a437d652e.tar.gz rust-4fdeb353ceecd17fd7894bd7968d266a437d652e.zip | |
Fully generalize `BTree{Map, Set}` range iterators
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.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
