Trait polars::datatypes::ArrayFromIter

source ·
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§

source

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

source

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

Provided Methods§

source

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

source

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,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ArrayFromIter<Option<bool>> for BooleanArray

source§

impl ArrayFromIter<bool> for BooleanArray

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,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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