shardtree: Add an accessor for a `ShardTree`'s underlying `ShardStore`
This commit is contained in:
parent
643e4ee5c9
commit
214d76e40a
|
@ -7,6 +7,9 @@ and this project adheres to Rust's notion of
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## Added
|
||||||
|
* `Shardtree::store`
|
||||||
|
|
||||||
## [0.2.0] - 2023-11-07
|
## [0.2.0] - 2023-11-07
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
|
|
@ -91,6 +91,11 @@ impl<
|
||||||
self.store
|
self.store
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns a reference to the underlying [`ShardStore`].
|
||||||
|
pub fn store(&self) -> &S {
|
||||||
|
&self.store
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns the root address of the tree.
|
/// Returns the root address of the tree.
|
||||||
pub fn root_addr() -> Address {
|
pub fn root_addr() -> Address {
|
||||||
Address::from_parts(Level::from(DEPTH), 0)
|
Address::from_parts(Level::from(DEPTH), 0)
|
||||||
|
|
Loading…
Reference in New Issue