Skip to main content

DimAdd

Trait DimAdd 

Source
pub trait DimAdd<D>: Dim
where D: 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".

Implementors§

Source§

impl<D1, D2> DimAdd<D2> for D1
where D1: DimName, D2: DimName, <D1 as DimName>::Value: Add<<D2 as DimName>::Value>, <<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output: NamedDim,

Source§

type Output = <<<D1 as DimName>::Value as Add<<D2 as DimName>::Value>>::Output as NamedDim>::Name

Source§

impl<D> DimAdd<D> for Dynamic
where D: Dim,

Source§

impl<D> DimAdd<Dynamic> for D
where D: DimName,