use typenum::Unsigned; use typenum_promote::*; #[test] fn test() { assert_eq!(::to_u64(), 0); assert_eq!(::to_u64(), 12345); assert_eq!(::to_u64(), 0x12345); assert_eq!( ::to_u64(), 0xffff_ffff_ffff_ffff ); }