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§
fn from_slice(name: PlSmallStr, v: &[N]) -> Self
fn from_slice_options(name: PlSmallStr, opt_v: &[Option<N>]) -> Self
Sourcefn from_iter_options(
name: PlSmallStr,
it: impl Iterator<Item = Option<N>>,
) -> Self
fn from_iter_options( name: PlSmallStr, it: impl Iterator<Item = Option<N>>, ) -> Self
Create a new ChunkedArray from an iterator.
Sourcefn from_iter_values(name: PlSmallStr, it: impl Iterator<Item = N>) -> Self
fn from_iter_values(name: PlSmallStr, it: impl Iterator<Item = N>) -> Self
Create a new ChunkedArray from an iterator.
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 NewChunkedArray<BooleanType, bool> for BooleanChunked
impl<B> NewChunkedArray<BinaryType, B> for BinaryChunked
impl<S> NewChunkedArray<StringType, S> for StringChunked
impl<T> NewChunkedArray<ObjectType<T>, T> for ObjectChunked<T>where
T: PolarsObject,
Available on crate feature
object
only.