aboutsummaryrefslogtreecommitdiff
path: root/src/storage/in_memory.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-02 09:57:58 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-02 09:57:58 +0100
commit415f51ac4cfc723bbf6f0c08d57fb86e96c665a2 (patch)
tree87b709d947093781bc787a741f661b9b3e436bdb /src/storage/in_memory.rs
parent26f14df3f460320b2e2d31deb9d3cef90f43790c (diff)
downloadaerogramme-415f51ac4cfc723bbf6f0c08d57fb86e96c665a2.tar.gz
aerogramme-415f51ac4cfc723bbf6f0c08d57fb86e96c665a2.zip
sadly switch to dynamic dispatch
Diffstat (limited to 'src/storage/in_memory.rs')
-rw-r--r--src/storage/in_memory.rs16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/storage/in_memory.rs b/src/storage/in_memory.rs
index 56df266..dc3d1e1 100644
--- a/src/storage/in_memory.rs
+++ b/src/storage/in_memory.rs
@@ -5,27 +5,19 @@ pub struct MemStore {}
pub struct MemRef {}
pub struct MemValue {}
-pub struct MemTypes {}
-impl Sto for MemTypes {
- type Builder=MemCreds;
- type Store=MemStore;
- type Ref=MemRef;
- type Value=MemValue;
-}
-
-impl RowBuilder<MemTypes> for MemCreds {
+impl IRowBuilder for MemCreds {
fn row_store(&self) -> MemStore {
unimplemented!();
}
}
-impl RowStore<MemTypes> for MemStore {
+impl IRowStore for MemStore {
fn new_row(&self, partition: &str, sort: &str) -> MemRef {
unimplemented!();
}
}
-impl RowRef<MemTypes> for MemRef {
+impl IRowRef for MemRef {
fn set_value(&self, content: Vec<u8>) -> MemValue {
unimplemented!();
}
@@ -40,7 +32,7 @@ impl RowRef<MemTypes> for MemRef {
}
}
-impl RowValue<MemTypes> for MemValue {
+impl IRowValue for MemValue {
fn to_ref(&self) -> MemRef {
unimplemented!();
}