Trait polars::prelude::datatypes::ArrayFromIterDtype

source ·
pub trait ArrayFromIterDtype<T>: Sized {
    // Required methods
    fn arr_from_iter_with_dtype<I>(dtype: ArrowDataType, iter: I) -> Self
       where I: IntoIterator<Item = T>;
    fn try_arr_from_iter_with_dtype<E, I>(
        dtype: ArrowDataType,
        iter: I
    ) -> Result<Self, E>
       where I: IntoIterator<Item = Result<T, E>>;

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

Required Methods§

source

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

source

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

Provided Methods§

source

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

source

fn try_arr_from_iter_trusted_with_dtype<E, I>( dtype: ArrowDataType, 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§