Trait polars_utils::index::Indexable

source ·
pub trait Indexable {
    type Item: IsNull;

    // Required methods
    fn get(&self, i: usize) -> Self::Item;
    unsafe fn get_unchecked(&self, i: usize) -> Self::Item;
}

Required Associated Types§

Required Methods§

source

fn get(&self, i: usize) -> Self::Item

source

unsafe fn get_unchecked(&self, i: usize) -> Self::Item

§Safety

Doesn’t do any bound checks.

Implementations on Foreign Types§

source§

impl<T: Copy + IsNull> Indexable for &[T]

source§

unsafe fn get_unchecked(&self, i: usize) -> Self::Item

§Safety

Doesn’t do any bound checks.

§

type Item = T

source§

fn get(&self, i: usize) -> Self::Item

Implementors§