Trait Concat

Source
pub trait Concat<T: Variance>: Variance {
    type Output: Variance;
}
Expand description

Operator trait used for concatenating two variances.

Used in tensor outer product.

Required Associated Types§

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<T> Concat<T> for ()
where T: TensorIndex,

Source§

impl<T, U, V> Concat<V> for (T, U)
where T: TensorIndex, V: TensorIndex, U: Variance + Concat<V>, <U as Concat<V>>::Output: Variance, Add1<<U as Variance>::Rank>: Unsigned + Add<B1>, Add1<<Joined<U, V> as Variance>::Rank>: Unsigned + Add<B1>,

Source§

type Output = (T, <U as Concat<V>>::Output)

Source§

impl<T, U, V, W> Concat<(V, W)> for (T, U)

Source§

type Output = (T, <U as Concat<(V, W)>>::Output)

Implementors§

Source§

impl<T, U> Concat<U> for T
where T: TensorIndex, U: TensorIndex, Add1<<U as Variance>::Rank>: Unsigned + Add<B1>,

Source§

impl<T, U, V> Concat<(U, V)> for T
where T: TensorIndex, U: TensorIndex, V: Variance, Add1<<V as Variance>::Rank>: Unsigned + Add<B1>, Add1<Add1<<V as Variance>::Rank>>: Unsigned + Add<B1>,