Trait IntoShape

Source
pub trait IntoShape {
    type IntoShape: Shape;

    // Required method
    fn into_shape(self) -> Self::IntoShape;
}
Expand description

Conversion trait into an array shape.

Required Associated Types§

Source

type IntoShape: Shape

Which kind of array shape are we turning this into?

Required Methods§

Source

fn into_shape(self) -> Self::IntoShape

Creates array shape from a value.

Implementations on Foreign Types§

Source§

impl IntoShape for [usize; 0]

Source§

impl IntoShape for [usize; 1]

Source§

impl IntoShape for [usize; 2]

Source§

impl IntoShape for [usize; 3]

Source§

impl IntoShape for [usize; 4]

Source§

impl IntoShape for [usize; 5]

Source§

impl IntoShape for [usize; 6]

Implementors§