Skip to content

Commit

Permalink
impl ExactSizeIterator for ZipValidity/ZipValidityIter (jorgecarleita…
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Nov 6, 2022
1 parent 8f35c13 commit a4a01dd
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 @@ -80,6 +80,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 @@ -172,6 +179,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 a4a01dd

Please sign in to comment.