Skip to content

Commit

Permalink
Add size_hint()
Browse files Browse the repository at this point in the history
Co-authored-by: Rinde van Lon <[email protected]>
  • Loading branch information
Felerius and rinde committed Dec 15, 2023
1 parent f0e41de commit 2c1de0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/iterators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ impl<T: BitBlock, const N: usize> Iterator for IntoIter<T, N> {

None
}

fn size_hint(&self) -> (usize, Option<usize>) {
(0, Some(N * T::BITS))
}
}

impl<T: BitBlock, const N: usize> DoubleEndedIterator for IntoIter<T, N> {
Expand Down

0 comments on commit 2c1de0a

Please sign in to comment.