polars::datatypes

Trait ArrayFromIter

pub trait ArrayFromIter<T>: Sized {
    // Required methods
    fn arr_from_iter<I>(iter: I) -> Self
       where I: IntoIterator<Item = T>;
    fn try_arr_from_iter<E, I>(iter: I) -> Result<Self, E>
       where I: IntoIterator<Item = Result<T, E>>;

    // Provided methods
    fn arr_from_iter_trusted<I>(iter: I) -> Self
       where I: IntoIterator<Item = T>,
             <I as IntoIterator>::IntoIter: TrustedLen { ... }
    fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<Self, E>
       where I: IntoIterator<Item = Result<T, E>>,
             <I as IntoIterator>::IntoIter: TrustedLen { ... }
}

Required Methods§

fn arr_from_iter<I>(iter: I) -> Self
where I: IntoIterator<Item = T>,

fn try_arr_from_iter<E, I>(iter: I) -> Result<Self, E>
where I: IntoIterator<Item = Result<T, E>>,

Provided Methods§

fn arr_from_iter_trusted<I>(iter: I) -> Self
where I: IntoIterator<Item = T>, <I as IntoIterator>::IntoIter: TrustedLen,

fn try_arr_from_iter_trusted<E, I>(iter: I) -> Result<Self, E>
where I: IntoIterator<Item = Result<T, E>>, <I as IntoIterator>::IntoIter: TrustedLen,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl ArrayFromIter<Option<bool>> for BooleanArray

§

impl ArrayFromIter<Option<()>> for StructArray

§

impl ArrayFromIter<bool> for BooleanArray

§

impl ArrayFromIter<()> for StructArray

Source§

impl<'a, T> ArrayFromIter<Option<&'a T>> for ObjectArray<T>
where T: PolarsObject,

Source§

impl<'a, T> ArrayFromIter<&'a T> for ObjectArray<T>
where T: PolarsObject,

§

impl<T> ArrayFromIter<Option<T>> for BinaryArray<i64>
where T: IntoBytes,

§

impl<T> ArrayFromIter<Option<T>> for BinaryViewArrayGeneric<str>
where T: StrIntoBytes,

§

impl<T> ArrayFromIter<Option<T>> for BinaryViewArrayGeneric<[u8]>
where T: IntoBytes,

§

impl<T> ArrayFromIter<Option<T>> for ListArray<i64>
where T: AsArray,

§

impl<T> ArrayFromIter<Option<T>> for PrimitiveArray<T>
where T: NativeType,

§

impl<T> ArrayFromIter<Option<T>> for Utf8Array<i64>
where T: StrIntoBytes,

§

impl<T> ArrayFromIter<T> for BinaryArray<i64>
where T: IntoBytes,

§

impl<T> ArrayFromIter<T> for BinaryViewArrayGeneric<str>
where T: StrIntoBytes,

§

impl<T> ArrayFromIter<T> for BinaryViewArrayGeneric<[u8]>
where T: IntoBytes,

§

impl<T> ArrayFromIter<T> for PrimitiveArray<T>
where T: NativeType,

§

impl<T> ArrayFromIter<T> for Utf8Array<i64>
where T: StrIntoBytes,