ella_common::shape

Trait IntoShape

Source
pub trait IntoShape: Debug + Clone {
    type Shape: Shape;

    // Required method
    fn into_shape(self) -> Self::Shape;
}

Required Associated Types§

Required Methods§

Source

fn into_shape(self) -> Self::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§

Source§

impl IntoShape for &[usize]

Source§

type Shape = Dyn

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for (usize, usize)

Source§

type Shape = Const<2>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for (usize, usize, usize)

Source§

type Shape = Const<3>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for (usize, usize, usize, usize)

Source§

type Shape = Const<4>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for (usize, usize, usize, usize, usize)

Source§

type Shape = Const<5>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for (usize, usize, usize, usize, usize, usize)

Source§

type Shape = Const<6>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for (usize,)

Source§

type Shape = Const<1>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for ()

Source§

type Shape = Const<0>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for usize

Source§

type Shape = Const<1>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for Vec<usize>

Source§

type Shape = Dyn

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for [usize; 0]

Source§

type Shape = Const<0>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for [usize; 1]

Source§

type Shape = Const<1>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for [usize; 2]

Source§

type Shape = Const<2>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for [usize; 3]

Source§

type Shape = Const<3>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for [usize; 4]

Source§

type Shape = Const<4>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for [usize; 5]

Source§

type Shape = Const<5>

Source§

fn into_shape(self) -> Self::Shape

Source§

impl IntoShape for [usize; 6]

Source§

type Shape = Const<6>

Source§

fn into_shape(self) -> Self::Shape

Implementors§

Source§

impl<S> IntoShape for S
where S: Shape,

Source§

type Shape = S