We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Debug
Clone
1 parent 267ef61 commit 401c5baCopy full SHA for 401c5ba
src/access.rs
@@ -5,15 +5,18 @@ pub trait Readable {}
5
pub trait Writable {}
6
7
/// Zero-sized marker type for allowing both read and write access.
8
+#[derive(Debug, Copy, Clone)]
9
pub struct ReadWrite;
10
impl Readable for ReadWrite {}
11
impl Writable for ReadWrite {}
12
13
/// Zero-sized marker type for allowing only read access.
14
15
pub struct ReadOnly;
16
17
impl Readable for ReadOnly {}
18
19
/// Zero-sized marker type for allowing only write access.
20
21
pub struct WriteOnly;
22
impl Writable for WriteOnly {}
0 commit comments