Expose RawTable and WrappedTable
This commit is contained in:
parent
58e81aedf9
commit
538d15d2d0
@ -1,2 +1,5 @@
|
|||||||
pub(crate) mod raw;
|
pub(crate) mod raw;
|
||||||
pub(crate) mod wrapped;
|
pub(crate) mod wrapped;
|
||||||
|
|
||||||
|
pub use raw::RawTable;
|
||||||
|
pub use wrapped::WrappedTable;
|
||||||
|
@ -9,6 +9,7 @@ pub trait ByteWrapper {
|
|||||||
type Item;
|
type Item;
|
||||||
|
|
||||||
fn load_from_db_bytes(&self, bytes: &[u8]) -> anyhow::Result<Self::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>>;
|
fn dump_to_db_bytes(&self, item: &Self::Item) -> anyhow::Result<Vec<u8>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user