Trait nalgebra::base::constraint::SameNumberOfColumns

source ·
pub trait SameNumberOfColumns<D1: Dim, D2: Dim>: DimEq<D1, D2> + DimEq<D2, D1> {
    type Representative: Dim;

    // Provided method
    fn representative(
        d1: D1,
        d2: D2,
    ) -> Option<<Self as SameNumberOfColumns<D1, D2>>::Representative> { ... }
}
Expand description

Constrains D1 and D2 to be equivalent. They are both assumed to be the number of columns of a matrix.

Required Associated Types§

source

type Representative: Dim

This is either equal to D1 or D2, always choosing the one (if any) which is a type-level constant.

Provided Methods§

source

fn representative( d1: D1, d2: D2, ) -> Option<<Self as SameNumberOfColumns<D1, D2>>::Representative>

Returns a representative dimension instance if the two are equal, otherwise None.

Object Safety§

This trait is not object safe.

Implementors§