shardtree: Add an accessor for a `ShardTree`'s underlying `ShardStore`

This commit is contained in:
Kris Nuttycombe 2024-03-09 17:11:16 -07:00
parent 643e4ee5c9
commit 214d76e40a
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,9 @@ and this project adheres to Rust's notion of
## Unreleased
## Added
* `Shardtree::store`
## [0.2.0] - 2023-11-07
## Added

View File

@ -91,6 +91,11 @@ impl<
self.store
}
/// Returns a reference to the underlying [`ShardStore`].
pub fn store(&self) -> &S {
&self.store
}
/// Returns the root address of the tree.
pub fn root_addr() -> Address {
Address::from_parts(Level::from(DEPTH), 0)