pub trait TryIndexOp<Idx> {
// Required method
fn try_index_device(
&self,
i: Idx,
stream: impl AsRef<Stream>,
) -> Result<Array>;
// Provided method
fn try_index(&self, i: Idx) -> Result<Array> { ... }
}
Expand description
Trait for custom indexing operations.
Out of bounds indexing is allowed and wouldn’t return an error.
Required Methods§
Provided Methods§
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.