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 38d11ae commit d70a7d8Copy full SHA for d70a7d8
version-ranges/src/lib.rs
@@ -855,6 +855,18 @@ impl<V> Iterator for RangesIter<V> {
855
fn next(&mut self) -> Option<Self::Item> {
856
self.0.next()
857
}
858
+
859
+ fn size_hint(&self) -> (usize, Option<usize>) {
860
+ (self.0.len(), Some(self.0.len()))
861
+ }
862
+}
863
864
+impl<V> ExactSizeIterator for RangesIter<V> {}
865
866
+impl<V> DoubleEndedIterator for RangesIter<V> {
867
+ fn next_back(&mut self) -> Option<Self::Item> {
868
+ self.0.next_back()
869
870
871
872
impl<V> IntoIterator for Ranges<V> {
0 commit comments