Struct simplicity::node::Commit
source · pub struct Commit<J> { /* private fields */ }Trait Implementations§
source§impl<W: Iterator<Item = Arc<Value>>, J: Jet> Converter<Commit<J>, Redeem<J>> for SimpleFinalizer<W>
impl<W: Iterator<Item = Arc<Value>>, J: Jet> Converter<Commit<J>, Redeem<J>> for SimpleFinalizer<W>
source§fn convert_witness(
&mut self,
_: &PostOrderIterItem<&CommitNode<J>>,
_: &NoWitness
) -> Result<Arc<Value>, Self::Error>
fn convert_witness( &mut self, _: &PostOrderIterItem<&CommitNode<J>>, _: &NoWitness ) -> Result<Arc<Value>, Self::Error>
For witness nodes, this method is called first to attach witness data to
the node. Read more
source§fn convert_disconnect(
&mut self,
_: &PostOrderIterItem<&CommitNode<J>>,
_: Option<&Arc<RedeemNode<J>>>,
_: &NoDisconnect
) -> Result<Arc<RedeemNode<J>>, Self::Error>
fn convert_disconnect( &mut self, _: &PostOrderIterItem<&CommitNode<J>>, _: Option<&Arc<RedeemNode<J>>>, _: &NoDisconnect ) -> Result<Arc<RedeemNode<J>>, Self::Error>
For disconnect nodes, this method is called first to attach a disconnected
expression to the node. Read more
source§fn convert_data(
&mut self,
data: &PostOrderIterItem<&CommitNode<J>>,
inner: Inner<&Arc<RedeemNode<J>>, J, &Arc<RedeemNode<J>>, &Arc<Value>>
) -> Result<Arc<RedeemData<J>>, Self::Error>
fn convert_data( &mut self, data: &PostOrderIterItem<&CommitNode<J>>, inner: Inner<&Arc<RedeemNode<J>>, J, &Arc<RedeemNode<J>>, &Arc<Value>> ) -> Result<Arc<RedeemData<J>>, Self::Error>
This method is called for every node, after
Self::convert_witness or
Self::prune_case, if either is applicable. Read moresource§fn visit_node(&mut self, _data: &PostOrderIterItem<&Node<N>>)
fn visit_node(&mut self, _data: &PostOrderIterItem<&Node<N>>)
This method is called on every node, to inform the
Converter about the
state of the iterator. Read moresource§impl<J: Jet> Marker for Commit<J>
impl<J: Jet> Marker for Commit<J>
§type CachedData = Arc<CommitData<J>>
type CachedData = Arc<CommitData<J>>
Precomputed data about the node, such as its type arrow or various Merkle roots.
§type Disconnect = NoDisconnect
type Disconnect = NoDisconnect
Type of disconnect data attached to DAGs of this node type.
§type SharingId = Imr
type SharingId = Imr
A type which uniquely identifies a node, for purposes of sharing
during iteration over the DAG.
source§fn compute_sharing_id(_: Cmr, cached_data: &Arc<CommitData<J>>) -> Option<Imr>
fn compute_sharing_id(_: Cmr, cached_data: &Arc<CommitData<J>>) -> Option<Imr>
Yields the sharing ID for a given type, starting from its CMR and its cached data. Read more
source§impl<J: Ord> Ord for Commit<J>
impl<J: Ord> Ord for Commit<J>
source§impl<J: PartialEq> PartialEq for Commit<J>
impl<J: PartialEq> PartialEq for Commit<J>
source§impl<J: PartialOrd> PartialOrd for Commit<J>
impl<J: PartialOrd> PartialOrd for Commit<J>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<J: Copy> Copy for Commit<J>
impl<J: Eq> Eq for Commit<J>
impl<J> StructuralPartialEq for Commit<J>
Auto Trait Implementations§
impl<J> RefUnwindSafe for Commit<J>where
J: RefUnwindSafe,
impl<J> Send for Commit<J>where
J: Send,
impl<J> Sync for Commit<J>where
J: Sync,
impl<J> Unpin for Commit<J>where
J: Unpin,
impl<J> UnwindSafe for Commit<J>where
J: UnwindSafe,
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