use sled::Tree;
pub struct Index {
pub(crate) tree: Tree,
pub(crate) name: &'static str,
}
impl Index {
pub fn name(&self) -> &'static str {
self.name
}
}
impl std::ops::Deref for Index {
type Target = sled::Tree;
fn deref(&self) -> &Self::Target {
&self.tree
}
}