polars_arrow/array/utf8/
from.rs

1
2
3
4
5
6
7
8
9
use super::{MutableUtf8Array, Utf8Array};
use crate::offset::Offset;

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