Skip to main content

IntoShape

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 an array shape from a value.

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§

Source§

impl IntoShape for &[usize]

Source§

impl IntoShape for Box<[usize]>

Source§

impl IntoShape for Vec<usize>

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]

Source§

impl<const N: usize> IntoShape for &[usize; N]

Implementors§