Struct dfdx::shapes::Axis

source ·
pub struct Axis<const I: isize>;
Expand description

A singular axis, e.g. Axis<0> or Axis<1>

Trait Implementations§

source§

impl<const I: isize> Axes for Axis<I>

§

type Array = [isize; 1]

source§

fn as_array() -> Self::Array

source§

impl<const I: isize> Clone for Axis<I>

source§

fn clone(&self) -> Axis<I>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<const I: isize> Debug for Axis<I>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<const I: isize> Default for Axis<I>

source§

fn default() -> Axis<I>

Returns the “default value” for a type. Read more
source§

impl HasAxes<Axis<0>> for [usize; 1]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<0>> for [usize; 2]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<0>> for [usize; 3]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<0>> for [usize; 4]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<0>> for [usize; 5]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<0>> for [usize; 6]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<0>> for ()

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim> HasAxes<Axis<0>> for (D1,)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim> HasAxes<Axis<0>> for (D1, D2)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim> HasAxes<Axis<0>> for (D1, D2, D3)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim> HasAxes<Axis<0>> for (D1, D2, D3, D4)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim> HasAxes<Axis<0>> for (D1, D2, D3, D4, D5)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim, D6: Dim> HasAxes<Axis<0>> for (D1, D2, D3, D4, D5, D6)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<1>> for [usize; 2]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<1>> for [usize; 3]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<1>> for [usize; 4]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<1>> for [usize; 5]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<1>> for [usize; 6]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim> HasAxes<Axis<1>> for (D1, D2)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim> HasAxes<Axis<1>> for (D1, D2, D3)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim> HasAxes<Axis<1>> for (D1, D2, D3, D4)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim> HasAxes<Axis<1>> for (D1, D2, D3, D4, D5)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim, D6: Dim> HasAxes<Axis<1>> for (D1, D2, D3, D4, D5, D6)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<2>> for [usize; 3]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<2>> for [usize; 4]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<2>> for [usize; 5]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<2>> for [usize; 6]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim> HasAxes<Axis<2>> for (D1, D2, D3)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim> HasAxes<Axis<2>> for (D1, D2, D3, D4)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim> HasAxes<Axis<2>> for (D1, D2, D3, D4, D5)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim, D6: Dim> HasAxes<Axis<2>> for (D1, D2, D3, D4, D5, D6)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<3>> for [usize; 4]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<3>> for [usize; 5]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<3>> for [usize; 6]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim> HasAxes<Axis<3>> for (D1, D2, D3, D4)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim> HasAxes<Axis<3>> for (D1, D2, D3, D4, D5)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim, D6: Dim> HasAxes<Axis<3>> for (D1, D2, D3, D4, D5, D6)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<4>> for [usize; 5]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<4>> for [usize; 6]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim> HasAxes<Axis<4>> for (D1, D2, D3, D4, D5)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim, D6: Dim> HasAxes<Axis<4>> for (D1, D2, D3, D4, D5, D6)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl HasAxes<Axis<5>> for [usize; 6]

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl<D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim, D6: Dim> HasAxes<Axis<5>> for (D1, D2, D3, D4, D5, D6)

source§

fn size(&self) -> usize

Returns the number of elements in dimensions along Ax
source§

impl ReduceShape<Axis<{$ax}>> for [usize; 1]

§

type Reduced = ()

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 2]

§

type Reduced = [usize; 1]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 2]

§

type Reduced = [usize; 1]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 3]

§

type Reduced = [usize; 2]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 3]

§

type Reduced = [usize; 2]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 3]

§

type Reduced = [usize; 2]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 4]

§

type Reduced = [usize; 3]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 4]

§

type Reduced = [usize; 3]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 4]

§

type Reduced = [usize; 3]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 4]

§

type Reduced = [usize; 3]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 5]

§

type Reduced = [usize; 4]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 5]

§

type Reduced = [usize; 4]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 5]

§

type Reduced = [usize; 4]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 5]

§

type Reduced = [usize; 4]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 5]

§

type Reduced = [usize; 4]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 6]

§

type Reduced = [usize; 5]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 6]

§

type Reduced = [usize; 5]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 6]

§

type Reduced = [usize; 5]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 6]

§

type Reduced = [usize; 5]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 6]

§

type Reduced = [usize; 5]

source§

impl ReduceShape<Axis<{$ax}>> for [usize; 6]

§

type Reduced = [usize; 5]

source§

impl<A: Dim> ReduceShape<Axis<{$ax}>> for (A,)

§

type Reduced = ()

source§

impl<A: Dim, B: Dim> ReduceShape<Axis<{$ax}>> for (A, B)

source§

impl<A: Dim, B: Dim> ReduceShape<Axis<{$ax}>> for (A, B)

source§

impl<A: Dim, B: Dim, C: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C)

source§

impl<A: Dim, B: Dim, C: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C)

source§

impl<A: Dim, B: Dim, C: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShape<Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl ReduceShape<Axis<0>> for ()

§

type Reduced = ()

source§

impl<A, B: Dim> TryConcatAlong<Axis<0>> for ((A,), (B,))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (<A as Add<B>>::Output,)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<0>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D1: Dim> TryConcatAlong<Axis<0>> for ((A, D1), (B, D1))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (<A as Add<B>>::Output, D1)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<0>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D1: Dim, D2: Dim> TryConcatAlong<Axis<0>> for ((A, D1, D2), (B, D1, D2))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (<A as Add<B>>::Output, D1, D2)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<0>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D1: Dim, D2: Dim, D3: Dim> TryConcatAlong<Axis<0>> for ((A, D1, D2, D3), (B, D1, D2, D3))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (<A as Add<B>>::Output, D1, D2, D3)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<0>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D1: Dim, D2: Dim, D3: Dim, D4: Dim> TryConcatAlong<Axis<0>> for ((A, D1, D2, D3, D4), (B, D1, D2, D3, D4))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (<A as Add<B>>::Output, D1, D2, D3, D4)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<0>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D1: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim> TryConcatAlong<Axis<0>> for ((A, D1, D2, D3, D4, D5), (B, D1, D2, D3, D4, D5))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (<A as Add<B>>::Output, D1, D2, D3, D4, D5)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<0>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim> TryConcatAlong<Axis<1>> for ((D0, A), (D0, B))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, <A as Add<B>>::Output)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<1>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D2: Dim> TryConcatAlong<Axis<1>> for ((D0, A, D2), (D0, B, D2))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, <A as Add<B>>::Output, D2)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<1>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D2: Dim, D3: Dim> TryConcatAlong<Axis<1>> for ((D0, A, D2, D3), (D0, B, D2, D3))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, <A as Add<B>>::Output, D2, D3)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<1>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D2: Dim, D3: Dim, D4: Dim> TryConcatAlong<Axis<1>> for ((D0, A, D2, D3, D4), (D0, B, D2, D3, D4))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, <A as Add<B>>::Output, D2, D3, D4)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<1>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D2: Dim, D3: Dim, D4: Dim, D5: Dim> TryConcatAlong<Axis<1>> for ((D0, A, D2, D3, D4, D5), (D0, B, D2, D3, D4, D5))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, <A as Add<B>>::Output, D2, D3, D4, D5)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<1>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim> TryConcatAlong<Axis<2>> for ((D0, D1, A), (D0, D1, B))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, <A as Add<B>>::Output)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<2>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim, D3: Dim> TryConcatAlong<Axis<2>> for ((D0, D1, A, D3), (D0, D1, B, D3))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, <A as Add<B>>::Output, D3)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<2>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim, D3: Dim, D4: Dim> TryConcatAlong<Axis<2>> for ((D0, D1, A, D3, D4), (D0, D1, B, D3, D4))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, <A as Add<B>>::Output, D3, D4)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<2>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim, D3: Dim, D4: Dim, D5: Dim> TryConcatAlong<Axis<2>> for ((D0, D1, A, D3, D4, D5), (D0, D1, B, D3, D4, D5))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, <A as Add<B>>::Output, D3, D4, D5)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<2>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim, D2: Dim> TryConcatAlong<Axis<3>> for ((D0, D1, D2, A), (D0, D1, D2, B))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, D2, <A as Add<B>>::Output)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<3>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim, D2: Dim, D4: Dim> TryConcatAlong<Axis<3>> for ((D0, D1, D2, A, D4), (D0, D1, D2, B, D4))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, D2, <A as Add<B>>::Output, D4)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<3>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim, D2: Dim, D4: Dim, D5: Dim> TryConcatAlong<Axis<3>> for ((D0, D1, D2, A, D4, D5), (D0, D1, D2, B, D4, D5))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, D2, <A as Add<B>>::Output, D4, D5)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<3>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim, D2: Dim, D3: Dim> TryConcatAlong<Axis<4>> for ((D0, D1, D2, D3, A), (D0, D1, D2, D3, B))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, D2, D3, <A as Add<B>>::Output)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<4>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim, D2: Dim, D3: Dim, D5: Dim> TryConcatAlong<Axis<4>> for ((D0, D1, D2, D3, A, D5), (D0, D1, D2, D3, B, D5))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, D2, D3, <A as Add<B>>::Output, D5)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<4>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<A, B: Dim, D0: Dim, D1: Dim, D2: Dim, D3: Dim, D4: Dim> TryConcatAlong<Axis<5>> for ((D0, D1, D2, D3, D4, A), (D0, D1, D2, D3, D4, B))where A: Add<B> + Dim, <A as Add<B>>::Output: Dim,

§

type Output = (D0, D1, D2, D3, D4, <A as Add<B>>::Output)

§

type Error = Infallible

source§

fn try_concat_along(self, _: Axis<5>) -> Result<Self::Output, Self::Error>

Fallibly concatenates self along the given axis.
source§

fn concat_along(self, ax: Ax) -> Self::Output

Concatenates self along the given axis.
source§

impl<const I: isize> Copy for Axis<I>

source§

impl ReduceShapeTo<[usize; 1], Axis<{$ax}>> for [usize; 2]

source§

impl ReduceShapeTo<[usize; 1], Axis<{$ax}>> for [usize; 2]

source§

impl ReduceShapeTo<[usize; 2], Axis<{$ax}>> for [usize; 3]

source§

impl ReduceShapeTo<[usize; 2], Axis<{$ax}>> for [usize; 3]

source§

impl ReduceShapeTo<[usize; 2], Axis<{$ax}>> for [usize; 3]

source§

impl ReduceShapeTo<[usize; 3], Axis<{$ax}>> for [usize; 4]

source§

impl ReduceShapeTo<[usize; 3], Axis<{$ax}>> for [usize; 4]

source§

impl ReduceShapeTo<[usize; 3], Axis<{$ax}>> for [usize; 4]

source§

impl ReduceShapeTo<[usize; 3], Axis<{$ax}>> for [usize; 4]

source§

impl ReduceShapeTo<[usize; 4], Axis<{$ax}>> for [usize; 5]

source§

impl ReduceShapeTo<[usize; 4], Axis<{$ax}>> for [usize; 5]

source§

impl ReduceShapeTo<[usize; 4], Axis<{$ax}>> for [usize; 5]

source§

impl ReduceShapeTo<[usize; 4], Axis<{$ax}>> for [usize; 5]

source§

impl ReduceShapeTo<[usize; 4], Axis<{$ax}>> for [usize; 5]

source§

impl ReduceShapeTo<[usize; 5], Axis<{$ax}>> for [usize; 6]

source§

impl ReduceShapeTo<[usize; 5], Axis<{$ax}>> for [usize; 6]

source§

impl ReduceShapeTo<[usize; 5], Axis<{$ax}>> for [usize; 6]

source§

impl ReduceShapeTo<[usize; 5], Axis<{$ax}>> for [usize; 6]

source§

impl ReduceShapeTo<[usize; 5], Axis<{$ax}>> for [usize; 6]

source§

impl ReduceShapeTo<[usize; 5], Axis<{$ax}>> for [usize; 6]

source§

impl ReduceShapeTo<(), Axis<{$ax}>> for [usize; 1]

source§

impl<A: Dim> ReduceShapeTo<(), Axis<{$ax}>> for (A,)

source§

impl ReduceShapeTo<(), Axis<0>> for ()

source§

impl<A: Dim, B: Dim> ReduceShapeTo<(A,), Axis<{$ax}>> for (A, B)

source§

impl<A: Dim, B: Dim, C: Dim> ReduceShapeTo<(A, B), Axis<{$ax}>> for (A, B, C)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim> ReduceShapeTo<(A, B, C), Axis<{$ax}>> for (A, B, C, D)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShapeTo<(A, B, C, D), Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShapeTo<(A, B, C, D, E), Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShapeTo<(A, B, C, D, F), Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShapeTo<(A, B, C, E), Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShapeTo<(A, B, C, E, F), Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim> ReduceShapeTo<(A, B, D), Axis<{$ax}>> for (A, B, C, D)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShapeTo<(A, B, D, E), Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShapeTo<(A, B, D, E, F), Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim, C: Dim> ReduceShapeTo<(A, C), Axis<{$ax}>> for (A, B, C)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim> ReduceShapeTo<(A, C, D), Axis<{$ax}>> for (A, B, C, D)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShapeTo<(A, C, D, E), Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShapeTo<(A, C, D, E, F), Axis<{$ax}>> for (A, B, C, D, E, F)

source§

impl<A: Dim, B: Dim> ReduceShapeTo<(B,), Axis<{$ax}>> for (A, B)

source§

impl<A: Dim, B: Dim, C: Dim> ReduceShapeTo<(B, C), Axis<{$ax}>> for (A, B, C)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim> ReduceShapeTo<(B, C, D), Axis<{$ax}>> for (A, B, C, D)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim> ReduceShapeTo<(B, C, D, E), Axis<{$ax}>> for (A, B, C, D, E)

source§

impl<A: Dim, B: Dim, C: Dim, D: Dim, E: Dim, F: Dim> ReduceShapeTo<(B, C, D, E, F), Axis<{$ax}>> for (A, B, C, D, E, F)

Auto Trait Implementations§

§

impl<const I: isize> RefUnwindSafe for Axis<I>

§

impl<const I: isize> Send for Axis<I>

§

impl<const I: isize> Sync for Axis<I>

§

impl<const I: isize> Unpin for Axis<I>

§

impl<const I: isize> UnwindSafe for Axis<I>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V