]> git.lizzy.rs Git - rust.git/commit
auto merge of #7921 : bytewiseand/rust/smallint-iter, r=huonw
authorbors <bors@rust-lang.org>
Sun, 21 Jul 2013 18:22:38 +0000 (11:22 -0700)
committerbors <bors@rust-lang.org>
Sun, 21 Jul 2013 18:22:38 +0000 (11:22 -0700)
commit73e9a121d285512371a3b94ec7d9bbaa59d24bbc
tree1d989ba6b6c615909eb53dbbb2af3fa84a4d92dc
parentc4b6216943eebbf17e6ea5641a0f32976633c4f2
parent51649b763e9115db8c95eaf1c0a3ba55c147ad9d
auto merge of #7921 : bytewiseand/rust/smallint-iter, r=huonw

Made the `iter` and `mut_iter` methods on SmallIntMap and SmallIntSet return double-ended-iterators. These iterators now implement `size_hint`.

Also the iterator tests only tested dense maps/sets, which aren't very useful. So they were changed to iterate over sparse maps/sets.

Fixes #7721
src/libextra/smallintmap.rs