Trait mdarray::Shape

source ·
pub trait Shape: Copy + Debug + Default + IndexMut<(Bound<usize>, Bound<usize>), Output = [usize]> + IndexMut<usize, Output = usize> + IndexMut<Range<usize>, Output = [usize]> + IndexMut<RangeFrom<usize>, Output = [usize]> + IndexMut<RangeFull, Output = [usize]> + IndexMut<RangeInclusive<usize>, Output = [usize]> + IndexMut<RangeTo<usize>, Output = [usize]> + IndexMut<RangeToInclusive<usize>, Output = [usize]> {
    type Dim: Dim<Shape = Self>;
}
Expand description

Array shape trait.

Required Associated Types§

source

type Dim: Dim<Shape = Self>

Array dimension type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Shape for [usize; 0]

§

type Dim = Const<0>

source§

impl Shape for [usize; 1]

§

type Dim = Const<1>

source§

impl Shape for [usize; 2]

§

type Dim = Const<2>

source§

impl Shape for [usize; 3]

§

type Dim = Const<3>

source§

impl Shape for [usize; 4]

§

type Dim = Const<4>

source§

impl Shape for [usize; 5]

§

type Dim = Const<5>

source§

impl Shape for [usize; 6]

§

type Dim = Const<6>

Implementors§