ella_tensor::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§

impl IntoShape for (usize, usize)

Source§

impl IntoShape for (usize, usize, usize)

Source§

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

Source§

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

Source§

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

Source§

impl IntoShape for (usize,)

Source§

impl IntoShape for ()

Source§

impl IntoShape for 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]

Implementors§

Source§

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

Source§

type Shape = S