polars_core::chunked_array::collect

Trait ChunkedCollectIterExt

Source
pub trait ChunkedCollectIterExt<T: PolarsDataType>: Iterator + Sized {
    // Provided methods
    fn collect_ca_with_dtype(
        self,
        name: PlSmallStr,
        dtype: DataType,
    ) -> ChunkedArray<T>
       where T::Array: ArrayFromIterDtype<Self::Item> { ... }
    fn collect_ca_like(
        self,
        name_dtype_src: &ChunkedArray<T>,
    ) -> ChunkedArray<T>
       where T::Array: ArrayFromIterDtype<Self::Item> { ... }
    fn collect_ca_trusted_with_dtype(
        self,
        name: PlSmallStr,
        dtype: DataType,
    ) -> ChunkedArray<T>
       where T::Array: ArrayFromIterDtype<Self::Item>,
             Self: TrustedLen { ... }
    fn collect_ca_trusted_like(
        self,
        name_dtype_src: &ChunkedArray<T>,
    ) -> ChunkedArray<T>
       where T::Array: ArrayFromIterDtype<Self::Item>,
             Self: TrustedLen { ... }
    fn try_collect_ca_with_dtype<U, E>(
        self,
        name: PlSmallStr,
        dtype: DataType,
    ) -> Result<ChunkedArray<T>, E>
       where T::Array: ArrayFromIterDtype<U>,
             Self: Iterator<Item = Result<U, E>> { ... }
    fn try_collect_ca_like<U, E>(
        self,
        name_dtype_src: &ChunkedArray<T>,
    ) -> Result<ChunkedArray<T>, E>
       where T::Array: ArrayFromIterDtype<U>,
             Self: Iterator<Item = Result<U, E>> { ... }
    fn try_collect_ca_trusted_with_dtype<U, E>(
        self,
        name: PlSmallStr,
        dtype: DataType,
    ) -> Result<ChunkedArray<T>, E>
       where T::Array: ArrayFromIterDtype<U>,
             Self: Iterator<Item = Result<U, E>> + TrustedLen { ... }
    fn try_collect_ca_trusted_like<U, E>(
        self,
        name_dtype_src: &ChunkedArray<T>,
    ) -> Result<ChunkedArray<T>, E>
       where T::Array: ArrayFromIterDtype<U>,
             Self: Iterator<Item = Result<U, E>> + TrustedLen { ... }
}

Provided Methods§

Source

fn collect_ca_with_dtype( self, name: PlSmallStr, dtype: DataType, ) -> ChunkedArray<T>
where T::Array: ArrayFromIterDtype<Self::Item>,

Source

fn collect_ca_like(self, name_dtype_src: &ChunkedArray<T>) -> ChunkedArray<T>
where T::Array: ArrayFromIterDtype<Self::Item>,

Source

fn collect_ca_trusted_with_dtype( self, name: PlSmallStr, dtype: DataType, ) -> ChunkedArray<T>
where T::Array: ArrayFromIterDtype<Self::Item>, Self: TrustedLen,

Source

fn collect_ca_trusted_like( self, name_dtype_src: &ChunkedArray<T>, ) -> ChunkedArray<T>
where T::Array: ArrayFromIterDtype<Self::Item>, Self: TrustedLen,

Source

fn try_collect_ca_with_dtype<U, E>( self, name: PlSmallStr, dtype: DataType, ) -> Result<ChunkedArray<T>, E>
where T::Array: ArrayFromIterDtype<U>, Self: Iterator<Item = Result<U, E>>,

Source

fn try_collect_ca_like<U, E>( self, name_dtype_src: &ChunkedArray<T>, ) -> Result<ChunkedArray<T>, E>
where T::Array: ArrayFromIterDtype<U>, Self: Iterator<Item = Result<U, E>>,

Source

fn try_collect_ca_trusted_with_dtype<U, E>( self, name: PlSmallStr, dtype: DataType, ) -> Result<ChunkedArray<T>, E>
where T::Array: ArrayFromIterDtype<U>, Self: Iterator<Item = Result<U, E>> + TrustedLen,

Source

fn try_collect_ca_trusted_like<U, E>( self, name_dtype_src: &ChunkedArray<T>, ) -> Result<ChunkedArray<T>, E>
where T::Array: 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§