pub trait Dims {
// Required method
fn to_indexes(self, shape: &Shape, op: &'static str) -> Result<Vec<usize>>;
// Provided method
fn check_indexes(
dims: &[usize],
shape: &Shape,
op: &'static str,
) -> Result<()> { ... }
}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.