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

pub trait TakeRandom {
    type Item;
    fn get(&self, index: usize) -> Option<Self::Item>;
unsafe fn get_unchecked(&self, index: usize) -> Self::Item; }

Random access

Associated Types

Loading content...

Required methods

fn get(&self, index: usize) -> Option<Self::Item>[src]

Get a nullable value by index.

Safety

Out of bounds access doesn't Error but will return a Null value

unsafe fn get_unchecked(&self, index: usize) -> Self::Item[src]

Get a value by index and ignore the null bit.

Safety

This doesn't check if the underlying type is null or not and may return an uninitialized value.

Loading content...

Implementors

impl TakeRandom for BooleanChunked[src]

type Item = bool

impl TakeRandom for CategoricalChunked[src]

type Item = u32

impl TakeRandom for ListChunked[src]

type Item = Series

impl<'a> TakeRandom for &'a Utf8Chunked[src]

type Item = &'a str

impl<'a, T> TakeRandom for &'a ChunkedArray<T> where
    T: PolarsPrimitiveType
[src]

type Item = T::Native

impl<'a, T> TakeRandom for NumTakeRandomChunked<'a, T> where
    T: PolarsNumericType
[src]

type Item = T::Native

impl<'a, T> TakeRandom for NumTakeRandomCont<'a, T> where
    T: Copy
[src]

type Item = T

impl<T> TakeRandom for ChunkedArray<T> where
    T: PolarsPrimitiveType
[src]

type Item = T::Native

Loading content...