feat(db): derive Compact codec (#177)

This commit is contained in:
joshieDo
2022-11-23 12:46:45 +08:00
committed by GitHub
parent 0f45f16455
commit 027fc2bbf2
30 changed files with 1413 additions and 72 deletions

View File

@@ -8,7 +8,7 @@ use sucds::{EliasFano, Searial};
/// Uses EliasFano to hold a list of integers. It provides really good compression with the
/// capability to access its elements without decoding it.
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct IntegerList(pub EliasFano);
impl Deref for IntegerList {