Struct everscale_types::cell::UsageTree
source · pub struct UsageTree { /* private fields */ }Expand description
Usage tree for a family of cells.
Implementations§
source§impl UsageTree
impl UsageTree
sourcepub fn new(mode: UsageTreeMode) -> Self
pub fn new(mode: UsageTreeMode) -> Self
Creates a usage tree with the specified tracking mode.
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(&self, repr_hash: &CellHash) -> bool
pub fn contains(&self, repr_hash: &CellHash) -> bool
Returns true if the cell with the specified representation hash
is present in this usage tree.
sourcepub fn with_subtrees(self) -> UsageTreeWithSubtrees
pub fn with_subtrees(self) -> UsageTreeWithSubtrees
Extends the usage tree with subtree tracker.
Trait Implementations§
source§impl MerkleFilter for UsageTree
impl MerkleFilter for UsageTree
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.