Skip to main content

ReshapeArgs

Trait ReshapeArgs 

Source
pub trait ReshapeArgs<const D2: usize>: Debug {
    // Required method
    fn into_shape<const D: usize>(self, source: Shape) -> Shape;
}
Available on crate feature api only.
Expand description

Trait used for reshape arguments.

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§

Source§

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