Trait dialectic::unary::Add [−][src]
Add two unary numbers at the type level.
Examples
use dialectic::prelude::*; use dialectic::unary::*; use static_assertions::assert_type_eq_all; assert_type_eq_all!(<(UnaryOf<1>, UnaryOf<1>) as Add>::Result, UnaryOf<2>); assert_type_eq_all!(<(UnaryOf<5>, UnaryOf<7>) as Add>::Result, UnaryOf<12>);
Associated Types
Loading content...Implementations on Foreign Types
impl<N: Unary> Add for (N, Z)
[src]
type Result = N
impl<N: Unary, M: Unary> Add for (N, S<M>) where
(N, M): Add,
[src]
Loading content...(N, M): Add,