mozilla/rust — pull request #7921 by bytewiseand (2013-07-20 01:09:53+00:00)
Title: smallint{map,set}: replace iterators with DoubleEndedIterator

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