File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -22,16 +22,19 @@ taking on the values 1 (`true`) or 0 (`false`).
22
22
23
23
## ` char `
24
24
25
- Rust char is 32-bit wide and represents [ Unicode scalar value] ( http://www.unicode.org/glossary/#unicode_scalar_value ) .
25
+ Rust char is 32-bit wide and represents an [ unicode scalar value] . The alignment
26
+ of ` char ` is _ implementation-defined_ .
27
+
28
+ [ unicode scalar value ] : http://www.unicode.org/glossary/#unicode_scalar_value
26
29
27
30
> ** Note** : Rust ` char ` type is not layout compatible with C / C++ ` char ` types.
28
31
> The C / C++ ` char ` types correspond to either Rust's ` i8 ` or ` u8 ` types on all
29
32
> currently supported platforms, depending on their signedness. Rust does not
30
33
> support C platforms in which C ` char ` is not 8-bit wide.
31
34
32
- ## ` usize ` / ` isize `
35
+ ## ` isize ` and ` usize `
33
36
34
- The ` usize ` and ` isize ` types are pointer-sized signed and unsigned integers.
37
+ The ` isize ` and ` usize ` types are pointer-sized signed and unsigned integers.
35
38
They have the same layout as the [ pointer types] for which the pointee is
36
39
` Sized ` , and are layout compatible with C's ` uintptr_t ` and ` intptr_t ` types.
37
40
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments