pub trait ShapeManipulator {
// Required methods
fn reshape<S: Into<Shape>>(self, shape: S) -> Self;
fn transpose<AXIS: Into<Axis>>(self, axes: AXIS) -> Self;
fn expand<S: Into<Shape>>(self, shape: S) -> Self;
}
Expand description
A trait for performing shape manipulation on an iterator.
Required Methods§
Sourcefn reshape<S: Into<Shape>>(self, shape: S) -> Self
fn reshape<S: Into<Shape>>(self, shape: S) -> Self
reshape the iterator, we can change the iteration behavior by changing the shape
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.