We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cec62f commit 5181c98Copy full SHA for 5181c98
version-ranges/src/lib.rs
@@ -836,6 +836,18 @@ impl<V> Iterator for RangesIter<V> {
836
fn next(&mut self) -> Option<Self::Item> {
837
self.0.next()
838
}
839
+
840
+ fn size_hint(&self) -> (usize, Option<usize>) {
841
+ (self.0.len(), Some(self.0.len()))
842
+ }
843
+}
844
845
+impl<V> ExactSizeIterator for RangesIter<V> {}
846
847
+impl<V> DoubleEndedIterator for RangesIter<V> {
848
+ fn next_back(&mut self) -> Option<Self::Item> {
849
+ self.0.next_back()
850
851
852
853
impl<V> IntoIterator for Ranges<V> {
0 commit comments