summaryrefslogtreecommitdiff
path: root/docs/type_system/int.md
blob: 4e2866019adf1148056b1422b47abf1deefc55e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Int

---

```text
Int_bit_size : `alias Enum[.bit8; .bit16; .bit32; .bit64]

Int_signedness : `alias Enum[.nosign; .unsigned; .signed; .bothsign]

Int_representation : `alias Enum[.bool; .binary; .octal; .decimal; .hex; .utf8; .utf16; .utf32]

Int[Int_bit_size; Int_signedness; Int_representation]
```

## Alias

```text
Bool : `alias Int[.bit8; .nosign; .bool]

Char : `alias Int[.bit32; .nosign; .utf8]

U8 : `alias Int[.bit8; .unsigned; .decimal]
U16 : `alias Int[.bit16; .unsigned; .decimal]
U32 : `alias Int[.bit32; .unsigned; .decimal]
U64 : `alias Int[.bit64; .unsigned; .decimal]

I8 : `alias Int[.bit8; .signed; .decimal]
I16 : `alias Int[.bit16; .signed; .decimal]
I32 : `alias Int[.bit32; .signed; .decimal]
I64 : `alias Int[.bit64; .signed; .decimal]
```