We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0757a2d + 628dea4 commit 1a0d0d5Copy full SHA for 1a0d0d5
src/type-layout.md
@@ -34,22 +34,22 @@ alignment of the type respectively.
34
35
The size of most primitives is given in this table.
36
37
-Type | `size_of::<Type>()`
38
-- | - | -
39
-bool | 1
40
-u8 | 1
41
-u16 | 2
42
-u32 | 4
43
-u64 | 8
44
-u128 | 16
45
-i8 | 1
46
-i16 | 2
47
-i32 | 4
48
-i64 | 8
49
-i128 | 16
50
-f32 | 4
51
-f64 | 8
52
-char | 4
+|Type | `size_of::<Type>()`|
+|-- |-- |
+|bool | 1 |
+|u8 | 1 |
+|u16 | 2 |
+|u32 | 4 |
+|u64 | 8 |
+|u128 | 16 |
+|i8 | 1 |
+|i16 | 2 |
+|i32 | 4 |
+|i64 | 8 |
+|i128 | 16 |
+|f32 | 4 |
+|f64 | 8 |
+|char | 4 |
53
54
`usize` and `isize` have a size big enough to contain every address on the
55
target platform. For example, on a 32 bit target, this is 4 bytes and on a 64
0 commit comments