polars_core::chunked_array::ops

Trait ChunkTake

Source
pub trait ChunkTake<Idx: ?Sized>: ChunkTakeUnchecked<Idx> {
    // Required method
    fn take(&self, indices: &Idx) -> PolarsResult<Self>
       where Self: Sized;
}

Required Methods§

Source

fn take(&self, indices: &Idx) -> PolarsResult<Self>
where Self: Sized,

Gather values from ChunkedArray by index.

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§