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

Commit

Permalink
Added missing iterator for FixedBinary (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao authored Jan 11, 2022
1 parent 79bb05c commit cc65b0e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/array/fixed_size_binary/iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ impl<'a> FixedSizeBinaryArray {
self.validity.as_ref().map(|x| x.iter()),
)
}

/// Returns iterator over the values of [`FixedSizeBinaryArray`]
pub fn iter_values(&'a self) -> FixedSizeBinaryValuesIter<'a, FixedSizeBinaryArray> {
FixedSizeBinaryValuesIter::new(self)
}
}

impl<'a> IntoIterator for &'a MutableFixedSizeBinaryArray {
Expand All @@ -87,4 +92,9 @@ impl<'a> MutableFixedSizeBinaryArray {
self.validity().as_ref().map(|x| x.iter()),
)
}

/// Returns iterator over the values of [`MutableFixedSizeBinaryArray`]
pub fn iter_values(&'a self) -> FixedSizeBinaryValuesIter<'a, MutableFixedSizeBinaryArray> {
FixedSizeBinaryValuesIter::new(self)
}
}

0 comments on commit cc65b0e

Please sign in to comment.