Skip to content

Commit 401c5ba

Browse files
committed
Derive Debug and Clone for access types
1 parent 267ef61 commit 401c5ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/access.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ pub trait Readable {}
55
pub trait Writable {}
66

77
/// Zero-sized marker type for allowing both read and write access.
8+
#[derive(Debug, Copy, Clone)]
89
pub struct ReadWrite;
910
impl Readable for ReadWrite {}
1011
impl Writable for ReadWrite {}
1112

1213
/// Zero-sized marker type for allowing only read access.
14+
#[derive(Debug, Copy, Clone)]
1315
pub struct ReadOnly;
1416

1517
impl Readable for ReadOnly {}
1618

1719
/// Zero-sized marker type for allowing only write access.
20+
#[derive(Debug, Copy, Clone)]
1821
pub struct WriteOnly;
1922
impl Writable for WriteOnly {}

0 commit comments

Comments
 (0)