Skip to content

Commit 166b588

Browse files
committed
storage: allow obtaining a reference to StorageImpl raw_storage
1 parent 5f637a9 commit 166b588

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/storage.rs

+8
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ where
192192
Self { raw_storage, serde }
193193
}
194194

195+
pub fn raw_storage(&self) -> &R {
196+
&self.raw_storage
197+
}
198+
199+
pub fn raw_storage_mut(&mut self) -> &mut R {
200+
&mut self.raw_storage
201+
}
202+
195203
pub fn contains(&self, name: &str) -> Result<bool, StorageError<R::Error, S::Error>> {
196204
self.raw_storage
197205
.contains(name)

0 commit comments

Comments
 (0)