ReshapeArgs

Trait ReshapeArgs 

pub trait ReshapeArgs<const D2: usize>: Debug {
    // Required method
    fn into_shape<const D: usize>(self, source: Shape) -> Shape;
}
Expand description

Trait used for reshape arguments.

Required Methods§

fn into_shape<const D: usize>(self, source: Shape) -> Shape

Converts to a 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.

Implementations on Foreign Types§

§

impl<const D2: usize, I> ReshapeArgs<D2> for [I; D2]
where I: AsIndex,

§

fn into_shape<const D: usize>(self, source: Shape) -> Shape

Implementors§

§

impl<const D2: usize> ReshapeArgs<D2> for Shape