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

Commit

Permalink
Added MutableBinaryValuesArray
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Oct 21, 2022
1 parent 6e46651 commit 48d2d2f
Show file tree
Hide file tree
Showing 10 changed files with 656 additions and 118 deletions.
11 changes: 10 additions & 1 deletion src/array/binary/iterator.rs
Expand Up @@ -3,7 +3,7 @@ use crate::{
bitmap::utils::ZipValidity,
};

use super::BinaryArray;
use super::{BinaryArray, MutableBinaryValuesArray};

unsafe impl<'a, O: Offset> ArrayAccessor<'a> for BinaryArray<O> {
type Item = &'a [u8];
Expand All @@ -30,3 +30,12 @@ impl<'a, O: Offset> IntoIterator for &'a BinaryArray<O> {
self.iter()
}
}

impl<'a, O: Offset> IntoIterator for &'a MutableBinaryValuesArray<O> {
type Item = &'a [u8];
type IntoIter = ArrayValuesIter<'a, MutableBinaryValuesArray<O>>;

fn into_iter(self) -> Self::IntoIter {
self.iter()
}
}
2 changes: 2 additions & 0 deletions src/array/binary/mod.rs
Expand Up @@ -21,6 +21,8 @@ pub(super) mod fmt;
mod iterator;
pub use iterator::*;
mod from;
mod mutable_values;
pub use mutable_values::*;
mod mutable;
pub use mutable::*;

Expand Down

0 comments on commit 48d2d2f

Please sign in to comment.