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: &HashBytes) -> bool
pub fn contains_direct(&self, repr_hash: &HashBytes) -> bool
Returns true
if the cell with the specified representation hash
is present in this usage tree.
Sourcepub fn contains_subtree(&self, repr_hash: &HashBytes) -> bool
pub fn contains_subtree(&self, repr_hash: &HashBytes) -> 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: &HashBytes) -> FilterAction
fn check(&self, cell: &HashBytes) -> FilterAction
Returns how the cell should be included in the Merkle proof or update.
Auto Trait Implementations§
impl Freeze for UsageTreeWithSubtrees
impl RefUnwindSafe for UsageTreeWithSubtrees
impl Send for UsageTreeWithSubtrees
impl Sync for UsageTreeWithSubtrees
impl Unpin for UsageTreeWithSubtrees
impl UnwindSafe for UsageTreeWithSubtrees
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more