Module typenum::operator_aliases
[−]
[src]
This module provides aliases for the type operators used in this crate. Their purpose is to increase the ergonomics of performing operations on the types defined here.
For example, type X
and type Y
are the same here:
use std::ops::Mul; use typenum::{Prod, P5, P7}; type X = <P7 as Mul<P5>>::Output; type Y = Prod<P7, P5>;
Type Definitions
Add1 |
Alias to make it easy to add 1: |
And |
Alias for the associated type of |
Compare |
Alias for the associated type of |
Cube |
Alias to make it easy to square. |
Diff |
Alias for the associated type of |
Exp |
Alias for the associated type of |
Mod |
Alias for the associated type of |
Negate |
Alias for the associated type of |
Or |
Alias for the associated type of |
Prod |
Alias for the associated type of |
Quot |
Alias for the associated type of |
Shleft |
Alias for the associated type of |
Shright |
Alias for the associated type of |
Square |
Alias to make it easy to square. |
Sub1 |
Alias to make it easy to subtract 1: |
Sum |
Alias for the associated type of |
Xor |
Alias for the associated type of |