polars_arrow::array

Trait ArrayCollectIterExt

Source
pub trait ArrayCollectIterExt<A: StaticArray>: Iterator + Sized {
    // Provided methods
    fn collect_arr(self) -> A
       where A: ArrayFromIter<Self::Item> { ... }
    fn collect_arr_trusted(self) -> A
       where A: ArrayFromIter<Self::Item>,
             Self: TrustedLen { ... }
    fn try_collect_arr<U, E>(self) -> Result<A, E>
       where A: ArrayFromIter<U>,
             Self: Iterator<Item = Result<U, E>> { ... }
    fn try_collect_arr_trusted<U, E>(self) -> Result<A, E>
       where A: ArrayFromIter<U>,
             Self: Iterator<Item = Result<U, E>> + TrustedLen { ... }
    fn collect_arr_with_dtype(self, dtype: ArrowDataType) -> A
       where A: ArrayFromIterDtype<Self::Item> { ... }
    fn collect_arr_trusted_with_dtype(self, dtype: ArrowDataType) -> A
       where A: ArrayFromIterDtype<Self::Item>,
             Self: TrustedLen { ... }
    fn try_collect_arr_with_dtype<U, E>(
        self,
        dtype: ArrowDataType,
    ) -> Result<A, E>
       where A: ArrayFromIterDtype<U>,
             Self: Iterator<Item = Result<U, E>> { ... }
    fn try_collect_arr_trusted_with_dtype<U, E>(
        self,
        dtype: ArrowDataType,
    ) -> Result<A, E>
       where A: ArrayFromIterDtype<U>,
             Self: Iterator<Item = Result<U, E>> + TrustedLen { ... }
}

Provided Methods§

Source

fn collect_arr(self) -> A
where A: ArrayFromIter<Self::Item>,

Source

fn collect_arr_trusted(self) -> A
where A: ArrayFromIter<Self::Item>, Self: TrustedLen,

Source

fn try_collect_arr<U, E>(self) -> Result<A, E>
where A: ArrayFromIter<U>, Self: Iterator<Item = Result<U, E>>,

Source

fn try_collect_arr_trusted<U, E>(self) -> Result<A, E>
where A: ArrayFromIter<U>, Self: Iterator<Item = Result<U, E>> + TrustedLen,

Source

fn collect_arr_with_dtype(self, dtype: ArrowDataType) -> A
where A: ArrayFromIterDtype<Self::Item>,

Source

fn collect_arr_trusted_with_dtype(self, dtype: ArrowDataType) -> A
where A: ArrayFromIterDtype<Self::Item>, Self: TrustedLen,

Source

fn try_collect_arr_with_dtype<U, E>(self, dtype: ArrowDataType) -> Result<A, E>
where A: ArrayFromIterDtype<U>, Self: Iterator<Item = Result<U, E>>,

Source

fn try_collect_arr_trusted_with_dtype<U, E>( self, dtype: ArrowDataType, ) -> Result<A, E>
where A: ArrayFromIterDtype<U>, Self: Iterator<Item = Result<U, E>> + 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§