pub trait Indexer<S>: Debugwhere
    S: Shape,{
    // Required methods
    fn index_checked(&self, shape: &S, strides: &S) -> Option<isize>;
    fn index_unchecked(&self, shape: &S, strides: &S) -> isize;
}

Required Methods§

source

fn index_checked(&self, shape: &S, strides: &S) -> Option<isize>

source

fn index_unchecked(&self, shape: &S, strides: &S) -> isize

Implementations on Foreign Types§

source§

impl<A, B, C, D, E> Indexer<Const<5>> for (A, B, C, D, E)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue, E: IndexValue,

source§

fn index_checked(&self, shape: &Const<5>, strides: &Const<5>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<5>, strides: &Const<5>) -> isize

source§

impl<I> Indexer<Const<6>> for [I; 6]where I: IndexValue,

source§

fn index_checked(&self, shape: &Const<6>, strides: &Const<6>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<6>, strides: &Const<6>) -> isize

source§

impl<I> Indexer<Const<2>> for [I; 2]where I: IndexValue,

source§

fn index_checked(&self, shape: &Const<2>, strides: &Const<2>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<2>, strides: &Const<2>) -> isize

source§

impl<A, B, C, D> Indexer<Const<4>> for (A, B, C, D)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue,

source§

fn index_checked(&self, shape: &Const<4>, strides: &Const<4>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<4>, strides: &Const<4>) -> isize

source§

impl<I> Indexer<Dyn> for [I; 1]where I: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<A, B, C, D, E, F> Indexer<Dyn> for (A, B, C, D, E, F)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue, E: IndexValue, F: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<A> Indexer<Dyn> for (A,)where A: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<I> Indexer<Dyn> for [I; 3]where I: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<I> Indexer<Dyn> for [I; 5]where I: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<A, B> Indexer<Dyn> for (A, B)where A: IndexValue, B: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<A, B, C, D, E, F> Indexer<Const<6>> for (A, B, C, D, E, F)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue, E: IndexValue, F: IndexValue,

source§

fn index_checked(&self, shape: &Const<6>, strides: &Const<6>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<6>, strides: &Const<6>) -> isize

source§

impl<I> Indexer<Const<0>> for [I; 0]where I: IndexValue,

source§

fn index_checked(&self, shape: &Const<0>, strides: &Const<0>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<0>, strides: &Const<0>) -> isize

source§

impl<I> Indexer<Dyn> for [I; 2]where I: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<I> Indexer<Const<1>> for [I; 1]where I: IndexValue,

source§

fn index_checked(&self, shape: &Const<1>, strides: &Const<1>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<1>, strides: &Const<1>) -> isize

source§

impl<I> Indexer<Dyn> for [I; 0]where I: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<I> Indexer<Const<4>> for [I; 4]where I: IndexValue,

source§

fn index_checked(&self, shape: &Const<4>, strides: &Const<4>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<4>, strides: &Const<4>) -> isize

source§

impl<I> Indexer<Dyn> for [I; 4]where I: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<A, B> Indexer<Const<2>> for (A, B)where A: IndexValue, B: IndexValue,

source§

fn index_checked(&self, shape: &Const<2>, strides: &Const<2>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<2>, strides: &Const<2>) -> isize

source§

impl Indexer<Const<0>> for ()

source§

fn index_checked(&self, shape: &Const<0>, strides: &Const<0>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<0>, strides: &Const<0>) -> isize

source§

impl<A, B, C> Indexer<Dyn> for (A, B, C)where A: IndexValue, B: IndexValue, C: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<I> Indexer<Dyn> for [I; 6]where I: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<I> Indexer<Const<3>> for [I; 3]where I: IndexValue,

source§

fn index_checked(&self, shape: &Const<3>, strides: &Const<3>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<3>, strides: &Const<3>) -> isize

source§

impl<A> Indexer<Const<1>> for (A,)where A: IndexValue,

source§

fn index_checked(&self, shape: &Const<1>, strides: &Const<1>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<1>, strides: &Const<1>) -> isize

source§

impl<A, B, C, D, E> Indexer<Dyn> for (A, B, C, D, E)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue, E: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl Indexer<Dyn> for ()

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<I> Indexer<Const<5>> for [I; 5]where I: IndexValue,

source§

fn index_checked(&self, shape: &Const<5>, strides: &Const<5>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<5>, strides: &Const<5>) -> isize

source§

impl<A, B, C, D> Indexer<Dyn> for (A, B, C, D)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<T> Indexer<Dyn> for Vec<T, Global>where T: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<T> Indexer<Dyn> for &[T]where T: IndexValue,

source§

fn index_checked(&self, shape: &Dyn, strides: &Dyn) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

source§

impl<A, B, C> Indexer<Const<3>> for (A, B, C)where A: IndexValue, B: IndexValue, C: IndexValue,

source§

fn index_checked(&self, shape: &Const<3>, strides: &Const<3>) -> Option<isize>

source§

fn index_unchecked(&self, shape: &Const<3>, strides: &Const<3>) -> isize

Implementors§

source§

impl<'a, T, S> Indexer<S> for IndexUnchecked<'a, T>where T: IndexValue, S: Shape,

source§

impl<I> Indexer<Const<1>> for Iwhere I: IndexValue,

source§

impl<S> Indexer<S> for Flatwhere S: Shape,

source§

impl<S> Indexer<S> for Swhere S: Shape,