Skip to content

Commit 746a359

Browse files
authored
Update type-layout.md
1 parent 8f92a7d commit 746a359

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/type-layout.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,6 @@ Most primitives are generally aligned to their size, although this is
5656
platform-specific behavior. In particular, on x86 u64 and f64 are only
5757
aligned to 32 bits.
5858

59-
For every primitive numeric type (`u8`, `i8`, `u16`, `i16`, `u32`, `i32`, `u64`,
60-
`i64`, `u128`, `i128`, `usize`, `isize`, `f32`, and `f64`), `T`, the bit validity
61-
of `T` is equivalent to the bit validity of `[u8; size_of::<T>()]`. An
62-
uninitialized byte is not a valid `u8`. A byte at any offset in a reference or
63-
pointer type may not be a valid `u8` (the semantics of transmuting a reference or
64-
pointer to a non-pointer type is currently undecided).
65-
66-
For `bool` and `char`, every byte is
67-
guaranteed to be initialized (in other words, for every such type, `T`,
68-
`transmute::<T, [u8; size_of::<T>()]>(...)` is always sound -- but the inverse is not).
69-
7059
## Pointers and References Layout
7160

7261
Pointers and references have the same layout. Mutability of the pointer or

0 commit comments

Comments
 (0)