Struct everscale_types::cell::UsageTreeWithSubtrees
source · pub struct UsageTreeWithSubtrees { /* private fields */ }Expand description
Usage tree for a family of cells with subtrees.
Implementations§
source§impl UsageTreeWithSubtrees
impl UsageTreeWithSubtrees
sourcepub fn track(&self, cell: &Cell) -> Cell
pub fn track(&self, cell: &Cell) -> Cell
Wraps the specified cell in a usage cell to keep track of the data or links being accessed.
sourcepub fn contains_direct(&self, repr_hash: &CellHash) -> bool
pub fn contains_direct(&self, repr_hash: &CellHash) -> bool
Returns true if the cell with the specified representation hash
is present in this usage tree.
sourcepub fn contains_subtree(&self, repr_hash: &CellHash) -> bool
pub fn contains_subtree(&self, repr_hash: &CellHash) -> bool
Returns true if the subtree root with the specified representation hash
is present in this usage tree.
sourcepub fn add_subtree(&mut self, root: &DynCell) -> bool
pub fn add_subtree(&mut self, root: &DynCell) -> bool
Adds a subtree to the usage tree. Returns whether the value was newly inserted.
Trait Implementations§
source§impl MerkleFilter for UsageTreeWithSubtrees
impl MerkleFilter for UsageTreeWithSubtrees
source§fn check(&self, cell: &CellHash) -> FilterAction
fn check(&self, cell: &CellHash) -> FilterAction
Returns how the cell should be included in the Merkle proof or update.