Trait ShapeManipulator

Source
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§

Source

fn reshape<S: Into<Shape>>(self, shape: S) -> Self

reshape the iterator, we can change the iteration behavior by changing the shape

Source

fn transpose<AXIS: Into<Axis>>(self, axes: AXIS) -> Self

transpose the iterator, we can change the iteration behavior by changing the axes

Source

fn expand<S: Into<Shape>>(self, shape: S) -> Self

expand 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.

Implementors§