diff --git a/src/lib.rs b/src/lib.rs index 0279dd7..f368c9b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,6 +43,11 @@ where fn size_hint(&self) -> (usize, Option) { self.iter.size_hint() } + + #[inline] + fn count(self) -> usize { + self.iter.count() + } } /// An [`Iterator`] blanket implementation that provides the [`accumulate()`](Self::accumulate)