We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#[must_use]
VolatilePtr::read
1 parent 8b576c3 commit 8046e4dCopy full SHA for 8046e4d
src/volatile_ptr/operations.rs
@@ -82,6 +82,7 @@ where
82
/// };
83
/// assert_eq!(pointer.read(), 42);
84
/// ```
85
+ #[must_use]
86
pub fn read(self) -> T
87
where
88
T: Copy,
0 commit comments