Skip to main content

DimNameSub

Trait DimNameSub 

Source
pub trait DimNameSub<D>: DimName
where D: DimName,
{ type Output: DimName; // Required method fn sub(self, other: D) -> Self::Output; }

Required Associated Types§

Required Methods§

Source

fn sub(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> DimNameSub<D2> for D1
where D1: DimName, D2: DimName, <D1 as DimName>::Value: Sub<<D2 as DimName>::Value>, <<D1 as DimName>::Value as Sub<<D2 as DimName>::Value>>::Output: NamedDim,

Source§

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