1 unstable release
0.1.0 | Mar 7, 2020 |
---|
#4 in #promote
3KB
typenum-promote
Promote integer literal to type-level integer
use typenum::Unsigned
use typenum_promote::promote;
assert_eq!(<promote!(12345) as Unsigned>::to_u64(), 12345);
Dependencies
~1.5MB
~39K SLoC