pub trait Shape:
AsRef<[usize]>
+ Clone
+ Debug
+ Eq
+ PartialEq {
// Required method
fn strides(&self) -> Self;
// Provided methods
fn iter(&self) -> Iter<'_, usize> { ... }
fn len(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... }
}
Expand description
A type that can act as a shape for an SFS.
This is simply a trait alias for things like arrays and slices of usize. Users should not need to implement this trait or care about its internals.
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.