Trait dfdx::shapes::RemoveDimTo

source ·
pub trait RemoveDimTo<Dst: Shape, Idx: Shape>: Shape {
    type Ax: Axes<Array = [isize; 1]>;

    // Provided methods
    fn check(&self, idx: &Idx) { ... }
    fn remove(&self, _: Idx) -> Dst { ... }
}
Expand description

Marker for shapes that can be indexed and have a dimension removed

Required Associated Types§

source

type Ax: Axes<Array = [isize; 1]>

Provided Methods§

source

fn check(&self, idx: &Idx)

All dimensions of idx should be the same as the dimensions of Self

source

fn remove(&self, _: Idx) -> Dst

Implementations on Foreign Types§

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(A, C, D, E, F), (A,)> for (A, B, C, D, E, F)

§

type Ax = Axis<1>

source§

impl<C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(C, D, F), (C, D)> for (C, D, E, F)

§

type Ax = Axis<2>

source§

impl<C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(C, D, E), (C, D, E)> for (C, D, E, F)

§

type Ax = Axis<3>

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(A, B, C, D, E), (A, B, C, D, E)> for (A, B, C, D, E, F)

§

type Ax = Axis<5>

source§

impl<D: Dim, E: Dim, F: Dim> RemoveDimTo<(E, F), ()> for (D, E, F)

§

type Ax = Axis<0>

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(A, B, C, E, F), (A, B, C)> for (A, B, C, D, E, F)

§

type Ax = Axis<3>

source§

impl<C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(D, E, F), ()> for (C, D, E, F)

§

type Ax = Axis<0>

source§

impl<F: Dim> RemoveDimTo<(), ()> for (F,)

§

type Ax = Axis<0>

source§

impl<E: Dim, F: Dim> RemoveDimTo<(F,), ()> for (E, F)

§

type Ax = Axis<0>

source§

impl<C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(C, E, F), (C,)> for (C, D, E, F)

§

type Ax = Axis<1>

source§

impl<B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(C, D, E, F), ()> for (B, C, D, E, F)

§

type Ax = Axis<0>

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(A, B, C, D, F), (A, B, C, D)> for (A, B, C, D, E, F)

§

type Ax = Axis<4>

source§

impl<B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(B, C, D, F), (B, C, D)> for (B, C, D, E, F)

§

type Ax = Axis<3>

source§

impl<D: Dim, E: Dim, F: Dim> RemoveDimTo<(D, F), (D,)> for (D, E, F)

§

type Ax = Axis<1>

source§

impl<E: Dim, F: Dim> RemoveDimTo<(E,), (E,)> for (E, F)

§

type Ax = Axis<1>

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(B, C, D, E, F), ()> for (A, B, C, D, E, F)

§

type Ax = Axis<0>

source§

impl<D: Dim, E: Dim, F: Dim> RemoveDimTo<(D, E), (D, E)> for (D, E, F)

§

type Ax = Axis<2>

source§

impl<B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(B, C, E, F), (B, C)> for (B, C, D, E, F)

§

type Ax = Axis<2>

source§

impl<B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(B, C, D, E), (B, C, D, E)> for (B, C, D, E, F)

§

type Ax = Axis<4>

source§

impl<B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(B, D, E, F), (B,)> for (B, C, D, E, F)

§

type Ax = Axis<1>

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> RemoveDimTo<(A, B, D, E, F), (A, B)> for (A, B, C, D, E, F)

§

type Ax = Axis<2>

Implementors§