Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
impl ExactSizeIterator for ZipValidity/ZipValidityIter (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Oct 30, 2022
1 parent 977561c commit f32b22e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/bitmap/utils/zip_validity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ where
{
}

impl<T, I, V> ExactSizeIterator for ZipValidityIter<T, I, V>
where
I: ExactSizeIterator<Item = T>,
V: ExactSizeIterator<Item = bool>,
{
}

/// An [`Iterator`] over [`Option<T>`]
/// This enum can be used in two distinct ways:
/// * as an iterator, via `Iterator::next`
Expand Down Expand Up @@ -155,6 +162,13 @@ where
}
}

impl<T, I, V> ExactSizeIterator for ZipValidity<T, I, V>
where
I: ExactSizeIterator<Item = T>,
V: ExactSizeIterator<Item = bool>,
{
}

unsafe impl<T, I, V> TrustedLen for ZipValidity<T, I, V>
where
I: TrustedLen<Item = T>,
Expand Down

0 comments on commit f32b22e

Please sign in to comment.