pub trait Dim {
// Required methods
fn to_index(&self, shape: &Shape, op: &'static str) -> Result<usize>;
fn to_index_plus_one(
&self,
shape: &Shape,
op: &'static str,
) -> Result<usize>;
}Required Methods§
fn to_index(&self, shape: &Shape, op: &'static str) -> Result<usize>
fn to_index_plus_one(&self, shape: &Shape, op: &'static str) -> Result<usize>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".