Module typenum::operator_aliases [−][src]
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 even more ergonomics, consider using the op!
macro instead.
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>; assert_type_eq!(X, Y);
Type Definitions
AbsVal | Alias for the associated type of |
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 cube. |
Diff | Alias for the associated type of |
Double | Alias to make it easy to multiply by 2. |
Eq | Alias for the associated type of |
Exp | Alias for the associated type of |
Gcf | Alias for the associated type of |
Gr | Alias for the associated type of |
GrEq | Alias for the associated type of |
Le | Alias for the associated type of |
LeEq | Alias for the associated type of |
Length | Alias for the associated type of |
Log2 | Alias for the associated type of |
Maximum | Alias for the associated type of |
Minimum | Alias for the associated type of |
Mod | Alias for the associated type of |
Negate | Alias for the associated type of |
NotEq | Alias for the associated type of |
Or | Alias for the associated type of |
PartialQuot | 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 |
Sqrt | 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 |