diff --git a/src/array/fixed_size_binary/iterator.rs b/src/array/fixed_size_binary/iterator.rs index 9eb77b43fd8..445e584be4a 100644 --- a/src/array/fixed_size_binary/iterator.rs +++ b/src/array/fixed_size_binary/iterator.rs @@ -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 { @@ -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) + } }