pub trait IndexOp<Idx>: TryIndexOp<Idx> {
// Provided methods
fn index_device(&self, i: Idx, stream: impl AsRef<Stream>) -> Array { ... }
fn index(&self, i: Idx) -> Array { ... }
}
Expand description
Trait for custom indexing operations.
This is implemented for all types that implement TryIndexOp
.
Provided Methods§
Sourcefn index_device(&self, i: Idx, stream: impl AsRef<Stream>) -> Array
fn index_device(&self, i: Idx, stream: impl AsRef<Stream>) -> Array
Index the array with the given 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.