nalgebra::base::dimension

Trait DimAdd

Source
pub trait DimAdd<D: Dim>: Dim {
    type Output: Dim;

    // Required method
    fn add(self, other: D) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn add(self, other: D) -> Self::Output

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.

Implementors§

Source§

impl<D: Dim> DimAdd<D> for Dyn

Source§

impl<D: DimName> DimAdd<Dyn> for D

Source§

impl<const A: usize, const B: usize> DimAdd<Const<B>> for Const<A>