pub fn new(db: &sled::Db, kind: &str) -> Result<EntityStore<T>> {
        let tree = db.open_tree(kind).context(FailedToOpenTree)?;

        Ok(EntityStore {
            tree,
            _phantom: Default::default(),
        })
    }
/// Fetch a subtree from the database and return a new handle to it.
Fetch a subtree from the database and return a new handle to it.
Fetch a subtree from the database and return a new handle to it .
pub fn new(db: &sled::Db, kind: &str) -> Result<EntityStore<T>> {
        let tree = db.open_tree(kind).context(FailedToOpenTree)?;
        Ok(EntityStore {
            tree,
            _phantom: Default::default(),
        })
    }
pub fn new ( db : & sled :: Db , kind : & str ) -> Result < EntityStore < T > > { let tree = db . open_tree ( kind ) . context ( FailedToOpenTree ) ? ; Ok ( EntityStore { tree , _phantom : Default :: default ( ) , } ) }
Fetch a subtree from the database and return a new handle to it.
Fetch a subtree from the database and return a new handle to it .
db
&sled::Db
kind
&str