pub struct MerkleProofExtBuilder<'a, F> { /* private fields */ }Expand description
Helper struct to build a Merkle proof and keep track of all pruned cells.
Implementations§
Source§impl<'a, F> MerkleProofExtBuilder<'a, F>
impl<'a, F> MerkleProofExtBuilder<'a, F>
Sourcepub fn allow_different_root(self, allow: bool) -> Self
pub fn allow_different_root(self, allow: bool) -> Self
Mark whether the different root is ok for this proof.
Source§impl<'a, F> MerkleProofExtBuilder<'a, F>where
F: MerkleFilter,
impl<'a, F> MerkleProofExtBuilder<'a, F>where
F: MerkleFilter,
Sourcepub fn build_raw_ext(
self,
context: &mut dyn CellContext,
) -> Result<(Cell, HashMap<&'a HashBytes, bool>), Error>
pub fn build_raw_ext( self, context: &mut dyn CellContext, ) -> Result<(Cell, HashMap<&'a HashBytes, bool>), Error>
Builds a Merkle proof child cell using the specified cell context.
Auto Trait Implementations§
impl<'a, F> Freeze for MerkleProofExtBuilder<'a, F>where
F: Freeze,
impl<'a, F> !RefUnwindSafe for MerkleProofExtBuilder<'a, F>
impl<'a, F> Send for MerkleProofExtBuilder<'a, F>where
F: Send,
impl<'a, F> Sync for MerkleProofExtBuilder<'a, F>where
F: Sync,
impl<'a, F> Unpin for MerkleProofExtBuilder<'a, F>where
F: Unpin,
impl<'a, F> !UnwindSafe for MerkleProofExtBuilder<'a, F>
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