Trait polars_core::chunked_array::ops::ChunkTake[][src]

pub trait ChunkTake {
    unsafe fn take_unchecked<I, INulls>(
        &self,
        indices: TakeIdx<'_, I, INulls>
    ) -> Self
    where
        Self: Sized,
        I: Iterator<Item = usize>,
        INulls: Iterator<Item = Option<usize>>
;
fn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> Self
    where
        Self: Sized,
        I: Iterator<Item = usize>,
        INulls: Iterator<Item = Option<usize>>
; }
Expand description

Fast access by index.

Required methods

unsafe fn take_unchecked<I, INulls>(
    &self,
    indices: TakeIdx<'_, I, INulls>
) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

Take values from ChunkedArray by index.

Safety

Doesn’t do any bound checking.

fn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

Take values from ChunkedArray by index.

Implementors

impl ChunkTake for BooleanChunked[src]

unsafe fn take_unchecked<I, INulls>(
    &self,
    indices: TakeIdx<'_, I, INulls>
) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

fn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

impl ChunkTake for CategoricalChunked[src]

unsafe fn take_unchecked<I, INulls>(
    &self,
    indices: TakeIdx<'_, I, INulls>
) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

fn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

impl ChunkTake for ListChunked[src]

unsafe fn take_unchecked<I, INulls>(
    &self,
    indices: TakeIdx<'_, I, INulls>
) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

fn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

impl ChunkTake for Utf8Chunked[src]

unsafe fn take_unchecked<I, INulls>(
    &self,
    indices: TakeIdx<'_, I, INulls>
) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

fn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

impl<T> ChunkTake for ChunkedArray<T> where
    T: PolarsNumericType
[src]

unsafe fn take_unchecked<I, INulls>(
    &self,
    indices: TakeIdx<'_, I, INulls>
) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

fn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

impl<T: PolarsObject> ChunkTake for ObjectChunked<T>[src]

unsafe fn take_unchecked<I, INulls>(
    &self,
    indices: TakeIdx<'_, I, INulls>
) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]

fn take<I, INulls>(&self, indices: TakeIdx<'_, I, INulls>) -> Self where
    Self: Sized,
    I: Iterator<Item = usize>,
    INulls: Iterator<Item = Option<usize>>, 
[src]