]> git.lizzy.rs Git - rust.git/commit
Use wrapper structs for `BTreeSet`'s iterators.
authorChase Southwood <chase.southwood@gmail.com>
Sat, 13 Dec 2014 05:14:57 +0000 (23:14 -0600)
committerChase Southwood <chase.southwood@gmail.com>
Tue, 16 Dec 2014 01:28:24 +0000 (19:28 -0600)
commita81c3ab468ad7aebcab8a545b196e74c2fb3ac32
tree7ca3ce0c722ba6336d6af8352aa302e402cf2168
parent765806ef1ee93b352b724aa76870d23d82894e4e
Use wrapper structs for `BTreeSet`'s iterators.

Using a type alias for iterator implementations is fragile since this
exposes the implementation to users of the iterator, and any changes
could break existing code.

This commit changes the iterators of `BTreeSet` to use
proper new types, rather than type aliases.  However, since it is
fair-game to treat a type-alias as the aliased type, this is a:

[breaking-change].
src/libcollections/btree/set.rs