We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Volatile
1 parent 7aa9df1 commit 6a854b1Copy full SHA for 6a854b1
src/lib.rs
@@ -35,6 +35,7 @@ use core::ptr;
35
///
36
/// The size of this struct is the same as the size of the contained type.
37
#[derive(Debug)]
38
+#[repr(transparent)]
39
pub struct Volatile<T: Copy>(T);
40
41
impl<T: Copy> Volatile<T> {
0 commit comments