polars::datatypes

Trait ArrayFromIterDtype

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§

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,

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 ArrayFromIterDtype<Option<()>> for StructArray

§

impl ArrayFromIterDtype<Option<Box<dyn Array>>> for FixedSizeListArray

§

impl ArrayFromIterDtype<()> for StructArray

§

impl ArrayFromIterDtype<Box<dyn Array>> for FixedSizeListArray

§

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

§

impl<T> ArrayFromIterDtype<T> for ListArray<i64>
where T: AsArray,

§

impl<T, A> ArrayFromIterDtype<T> for A
where A: ParameterFreeDtypeStaticArray + ArrayFromIter<T>,