1
2
3
4
5
6
7
8
9
10
11
12
use std::iter::FromIterator;

use crate::offset::Offset;

use super::{BinaryArray, MutableBinaryArray};

impl<O: Offset, P: AsRef<[u8]>> FromIterator<Option<P>> for BinaryArray<O> {
    #[inline]
    fn from_iter<I: IntoIterator<Item = Option<P>>>(iter: I) -> Self {
        MutableBinaryArray::<O>::from_iter(iter).into()
    }
}