Skip to main content

Crate nbyte_int

Crate nbyte_int 

Source
Expand description

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 nbyte_int::prelude::*;

const A: u40 = u40!(123456789012);
const B: i24 = i24!(-1024);

These will panic at compile time if the value doesn’t fit in the target bit width.

Modules§

const_macro
prelude
types

Macros§

i24
i40
i48
i56
i72
i80
i88
i96
i104
i112
i120
u24
u40
u48
u56
u72
u80
u88
u96
u104
u112
u120