polars::chunked_array::collect

Trait ChunkedCollectIterExt

Source
pub trait ChunkedCollectIterExt<T>: Sized + Iterator
where T: PolarsDataType,
{ // Provided methods fn collect_ca_with_dtype( self, name: PlSmallStr, dtype: DataType, ) -> ChunkedArray<T> where <T as PolarsDataType>::Array: ArrayFromIterDtype<Self::Item> { ... } fn collect_ca_like( self, name_dtype_src: &ChunkedArray<T>, ) -> ChunkedArray<T> where <T as PolarsDataType>::Array: ArrayFromIterDtype<Self::Item> { ... } fn collect_ca_trusted_with_dtype( self, name: PlSmallStr, dtype: DataType, ) -> ChunkedArray<T> where <T as PolarsDataType>::Array: ArrayFromIterDtype<Self::Item>, Self: TrustedLen { ... } fn collect_ca_trusted_like( self, name_dtype_src: &ChunkedArray<T>, ) -> ChunkedArray<T> where <T as PolarsDataType>::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 as PolarsDataType>::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 as PolarsDataType>::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 as PolarsDataType>::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 as PolarsDataType>::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>

Source

fn collect_ca_like(self, name_dtype_src: &ChunkedArray<T>) -> ChunkedArray<T>

Source

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

Source

fn collect_ca_trusted_like( self, name_dtype_src: &ChunkedArray<T>, ) -> ChunkedArray<T>
where <T as PolarsDataType>::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 as PolarsDataType>::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 as PolarsDataType>::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 as PolarsDataType>::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 as PolarsDataType>::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§

Source§

impl<T, I> ChunkedCollectIterExt<T> for I
where T: PolarsDataType, I: Iterator,