mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-31 04:21:23 +00:00
add is_empty
This commit is contained in:
@@ -289,6 +289,10 @@ impl Tree {
|
|||||||
pub fn root_node(&self) -> Result<IndexedNode, Error> {
|
pub fn root_node(&self) -> Result<IndexedNode, Error> {
|
||||||
self.resolve_link(self.root)
|
self.resolve_link(self.root)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn is_empty(&self) -> bool {
|
||||||
|
self.stored_count == 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reference to the node with link attached.
|
/// Reference to the node with link attached.
|
||||||
|
Reference in New Issue
Block a user