Skip to content

Commit

Permalink
shardtree: Add ShardTree::store_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttycom committed Mar 11, 2024
1 parent 25cb189 commit fa147c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shardtree/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ and this project adheres to Rust's notion of
## Unreleased

## Added
* `Shardtree::store`
* `Shardtree::{store, store_mut}`
- `ShardTree::insert_frontier`

## Changed
Expand Down
5 changes: 5 additions & 0 deletions shardtree/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ impl<
&self.store
}

/// Returns a mutable reference to the underlying [`ShardStore`].
pub fn store_mut(&mut self) -> &mut S {
&mut self.store
}

/// Returns the root address of the tree.
pub fn root_addr() -> Address {
Address::from_parts(Level::from(DEPTH), 0)
Expand Down

0 comments on commit fa147c8

Please sign in to comment.