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§
Sourcefn into_index(self) -> impl IntoIterator<Item = Range<i64>>
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.