pub trait TakeRandomUtf8 {
    type Item;

    // Required method
    fn get(self, index: usize) -> Option<Self::Item>;

    // Provided method
    unsafe fn get_unchecked(self, index: usize) -> Option<Self::Item>
       where Self: Sized { ... }
}

Required Associated Types§

type Item

Required Methods§

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

Get a nullable value by index.

Panics

Panics if index >= self.len()

Provided Methods§

unsafe fn get_unchecked(self, index: usize) -> Option<Self::Item>where Self: Sized,

Get a value by index and ignore the null bit.

Safety

Does not do bound checks.

Implementors§

§

impl<'a> TakeRandomUtf8 for &'a ChunkedArray<Utf8Type>

§

type Item = &'a str