pub trait SameShapeAllocator<T, R1, C1, R2, C2>: Allocator<T, R1, C1> + Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>where
    R1: Dim,
    R2: Dim,
    C1: Dim,
    C2: Dim,
    ShapeConstraint: SameNumberOfRows<R1, R2> + SameNumberOfColumns<C1, C2>,{ }
Expand description

Restricts the given number of rows and columns to be respectively the same.

Implementors§

source§

impl<T, R1, R2, C1, C2> SameShapeAllocator<T, R1, C1, R2, C2> for DefaultAllocatorwhere R1: Dim, R2: Dim, C1: Dim, C2: Dim, DefaultAllocator: Allocator<T, R1, C1> + Allocator<T, <ShapeConstraint as SameNumberOfRows<R1, R2>>::Representative, <ShapeConstraint as SameNumberOfColumns<C1, C2>>::Representative>, ShapeConstraint: SameNumberOfRows<R1, R2> + SameNumberOfColumns<C1, C2>,