pub trait IntoIndex {
    // Required method
    fn into_index(self) -> impl IntoIterator<Item = Range<i64>>;
}
Expand description

Implemented for objects that can be used to index tensors.

Required Methods§

source

fn into_index(self) -> impl IntoIterator<Item = Range<i64>>

Convert self to tensor index.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<I0: IntoRange, I1: IntoRange> IntoIndex for (I0, I1)

source§

fn into_index(self) -> impl IntoIterator<Item = Range<i64>>

source§

impl<I0: IntoRange, I1: IntoRange, I2: IntoRange> IntoIndex for (I0, I1, I2)

source§

fn into_index(self) -> impl IntoIterator<Item = Range<i64>>

source§

impl<I0: IntoRange, I1: IntoRange, I2: IntoRange, I3: IntoRange> IntoIndex for (I0, I1, I2, I3)

source§

fn into_index(self) -> impl IntoIterator<Item = Range<i64>>

source§

impl<I0: IntoRange, I1: IntoRange, I2: IntoRange, I3: IntoRange, I4: IntoRange> IntoIndex for (I0, I1, I2, I3, I4)

source§

fn into_index(self) -> impl IntoIterator<Item = Range<i64>>

source§

impl<I0: IntoRange, I1: IntoRange, I2: IntoRange, I3: IntoRange, I4: IntoRange, I5: IntoRange> IntoIndex for (I0, I1, I2, I3, I4, I5)

source§

fn into_index(self) -> impl IntoIterator<Item = Range<i64>>

source§

impl<I0: IntoRange, I1: IntoRange, I2: IntoRange, I3: IntoRange, I4: IntoRange, I5: IntoRange, I6: IntoRange> IntoIndex for (I0, I1, I2, I3, I4, I5, I6)

source§

fn into_index(self) -> impl IntoIterator<Item = Range<i64>>

source§

impl<I0: IntoRange, I1: IntoRange, I2: IntoRange, I3: IntoRange, I4: IntoRange, I5: IntoRange, I6: IntoRange, I7: IntoRange> IntoIndex for (I0, I1, I2, I3, I4, I5, I6, I7)

source§

fn into_index(self) -> impl IntoIterator<Item = Range<i64>>

source§

impl<I: IntoRange> IntoIndex for &[I]

source§

fn into_index(self) -> impl IntoIterator<Item = Range<i64>>

Implementors§

source§

impl<I0: IntoRange> IntoIndex for I0