diff --git a/src/lib.rs b/src/lib.rs index 7394c0e..4454143 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,7 +34,7 @@ use core::ptr; /// take and return copies of the value. /// /// The size of this struct is the same as the size of the contained type. -#[derive(Debug)] +#[derive(Clone, Copy, Debug)] pub struct Volatile(T); impl Volatile { @@ -143,7 +143,7 @@ impl Volatile { /// A volatile wrapper which only allows read operations. /// /// The size of this struct is the same as the contained type. -#[derive(Debug)] +#[derive(Clone, Copy, Debug)] pub struct ReadOnly(Volatile); impl ReadOnly { @@ -200,7 +200,7 @@ impl ReadOnly { /// A volatile wrapper which only allows write operations. /// /// The size of this struct is the same as the contained type. -#[derive(Debug)] +#[derive(Clone, Copy, Debug)] pub struct WriteOnly(Volatile); impl WriteOnly {