From 3ef93258550e3193564a32e132b9c4e3f382438a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E2=80=A2=C3=98=E2=80=A2R=E2=80=A2=C3=9C=E2=80=A2S?= Date: Thu, 15 Aug 2024 12:32:10 +0400 Subject: [PATCH] Make protected::traits public so that I can make types using Protected<> 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 } ``` --- src/protected.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protected.rs b/src/protected.rs index 198c658..f032a59 100644 --- a/src/protected.rs +++ b/src/protected.rs @@ -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 {}