Trait polars::chunked_array::builder::NewChunkedArray

source ·
pub trait NewChunkedArray<T, N> {
    // Required methods
    fn from_slice(name: PlSmallStr, v: &[N]) -> Self;
    fn from_slice_options(name: PlSmallStr, opt_v: &[Option<N>]) -> Self;
    fn from_iter_options(
        name: PlSmallStr,
        it: impl Iterator<Item = Option<N>>,
    ) -> Self;
    fn from_iter_values(name: PlSmallStr, it: impl Iterator<Item = N>) -> Self;
}

Required Methods§

source

fn from_slice(name: PlSmallStr, v: &[N]) -> Self

source

fn from_slice_options(name: PlSmallStr, opt_v: &[Option<N>]) -> Self

source

fn from_iter_options( name: PlSmallStr, it: impl Iterator<Item = Option<N>>, ) -> Self

Create a new ChunkedArray from an iterator.

source

fn from_iter_values(name: PlSmallStr, it: impl Iterator<Item = N>) -> Self

Create a new ChunkedArray from an iterator.

Object Safety§

This trait is not object safe.

Implementors§