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

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

Associated Types

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.

Implementors

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

type Item = &'a str

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

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