Trait IntoIndex

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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