Expose RawTable and WrappedTable

This commit is contained in:
Olivier 'reivilibre' 2022-03-25 19:14:47 +00:00
parent 58e81aedf9
commit 538d15d2d0
2 changed files with 4 additions and 0 deletions

View File

@ -1,2 +1,5 @@
pub(crate) mod raw;
pub(crate) mod wrapped;
pub use raw::RawTable;
pub use wrapped::WrappedTable;

View File

@ -9,6 +9,7 @@ pub trait ByteWrapper {
type Item;
fn load_from_db_bytes(&self, bytes: &[u8]) -> anyhow::Result<Self::Item>;
fn dump_to_db_bytes(&self, item: &Self::Item) -> anyhow::Result<Vec<u8>>;
}