diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-26 09:44:38 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-26 16:49:36 -0800 |
| commit | 702127f6f1b099f8a34804ddb71f821444b7b64e (patch) | |
| tree | b68fb1546ea86614e422c695ccd6c5308cbd52c8 /src/test/codegen/stack-alloc-string-slice.cc | |
| parent | f40fa8304fea63e04364645260112ddaf91ce70f (diff) | |
| parent | 2a6f197bf4358f6ed9211777e59553128caa459b (diff) | |
| download | rust-702127f6f1b099f8a34804ddb71f821444b7b64e.tar.gz rust-702127f6f1b099f8a34804ddb71f821444b7b64e.zip | |
rollup merge of #19296: csouth3/trieset-union
TrieSet doesn't yet have union, intersection, difference, and symmetric difference functions implemented. Luckily, TrieSet is largely similar to TreeSet, so I was able to reference the implementations of these functions in the latter, and adapt them as necessary to make them work for TrieSet. One thing that I thought was interesting is that the Iterator yielded by `iter()` for TrieSet iterates over the set's values directly rather than references to the values (whereas I think in most cases I see the Iterator given by `iter()` iterating over immutable references), so for consistency within TrieSet's interface, all of these Iterators also iterate over the values directly. Let me know if all of these should be instead iterating over references.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions
