File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ use core::ptr;
34
34
/// take and return copies of the value.
35
35
///
36
36
/// The size of this struct is the same as the size of the contained type.
37
- #[ derive( Debug ) ]
37
+ #[ derive( Debug , Clone ) ]
38
38
pub struct Volatile < T : Copy > ( T ) ;
39
39
40
40
impl < T : Copy > Volatile < T > {
@@ -143,7 +143,7 @@ impl<T: Copy> Volatile<T> {
143
143
/// A volatile wrapper which only allows read operations.
144
144
///
145
145
/// The size of this struct is the same as the contained type.
146
- #[ derive( Debug ) ]
146
+ #[ derive( Debug , Clone ) ]
147
147
pub struct ReadOnly < T : Copy > ( Volatile < T > ) ;
148
148
149
149
impl < T : Copy > ReadOnly < T > {
@@ -200,7 +200,7 @@ impl<T: Copy> ReadOnly<T> {
200
200
/// A volatile wrapper which only allows write operations.
201
201
///
202
202
/// The size of this struct is the same as the contained type.
203
- #[ derive( Debug ) ]
203
+ #[ derive( Debug , Clone ) ]
204
204
pub struct WriteOnly < T : Copy > ( Volatile < T > ) ;
205
205
206
206
impl < T : Copy > WriteOnly < T > {
You can’t perform that action at this time.
0 commit comments