ConstShape

Trait ConstShape 

Source
pub trait ConstShape: Copy + Shape { }
Expand description

Trait for array shape where all dimensions are constant-sized.

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 ConstShape for ()

Source§

impl<const X: usize> ConstShape for (Const<X>,)

Source§

impl<const X: usize, const Y: usize> ConstShape for (Const<X>, Const<Y>)

Source§

impl<const X: usize, const Y: usize, const Z: usize> ConstShape for (Const<X>, Const<Y>, Const<Z>)

Source§

impl<const X: usize, const Y: usize, const Z: usize, const W: usize> ConstShape for (Const<X>, Const<Y>, Const<Z>, Const<W>)

Source§

impl<const X: usize, const Y: usize, const Z: usize, const W: usize, const U: usize> ConstShape for (Const<X>, Const<Y>, Const<Z>, Const<W>, Const<U>)

Source§

impl<const X: usize, const Y: usize, const Z: usize, const W: usize, const U: usize, const V: usize> ConstShape for (Const<X>, Const<Y>, Const<Z>, Const<W>, Const<U>, Const<V>)

Implementors§