Skip to content

Commit 80ec146

Browse files
authored
Update numeric.md
1 parent 5795f3a commit 80ec146

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/types/numeric.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ within an object along with one byte past the end.
4545
> `isize` are either 32-bit or 64-bit. As a consequence, 16-bit
4646
> pointer support is limited and may require explicit care and acknowledgment
4747
> from a library to support.
48+
49+
## Bit validity
50+
51+
For every numeric type, `T`, the bit validity of `T` is equivalent to the bit
52+
validity of `[u8; size_of::<T>()]`. An uninitialized byte is not a valid `u8`.

0 commit comments

Comments
 (0)