Skip to content

tanakh/typenum-promote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Promote integer literal to type-level integer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages