We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Padding
T: Copy
1 parent 169b15b commit 9b77a49Copy full SHA for 9b77a49
src/types.rs
@@ -6,6 +6,9 @@ use crate::prelude::*;
6
7
/// A transparent wrapper over `MaybeUninit<T>` to represent uninitialized padding
8
/// while providing `Default`.
9
+// This is restricted to `Copy` types since that's a loose indicator that zeros is actually
10
+// a valid bitpattern. There is no technical reason this is required, though, so it could be
11
+// lifted in the future if it becomes a problem.
12
#[allow(unused)]
13
#[repr(transparent)]
14
#[derive(Clone, Copy)]
0 commit comments