Skip to content

Commit

Permalink
Make protected::traits public so that I can make types using Protected<>
Browse files Browse the repository at this point in the history
I cannot use Protected memory in any of my types because the `traits` module is private, so I could not actually write something like:

```rs
struct ProtectedMemory {
  my_struct: Protected<HeapBytes, ReadOnly, Locked>
}
```
  • Loading branch information
mahmoud-moursy authored and brndnmtthws committed Aug 15, 2024
1 parent 1f4f828 commit 49e01a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/protected.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ mod int {
}
}

mod traits {
#[doc(hidden)] // Edit this PR to remove doc(hidden) or add a doc comment.
pub mod traits {
pub trait ProtectMode {}
pub struct ReadOnly {}
pub struct ReadWrite {}
Expand Down

0 comments on commit 49e01a6

Please sign in to comment.