nbyte_int – Custom Sized Integer Types
Features
- Option<nbyte_int> is the same size as nbyte_int
- it has all byte variants of integers what else do you want?
- a constant macro
Constant Macros
Every type has a corresponding constant macro:
use *;
const A: u40 = u40!;
const B: i24 = i24!;
These will panic at compile time if the value doesn't fit in the target bit width.