lunar-lib 0.11.2

Common utilities for lunar applications
Documentation
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
    }
}