pub struct Redeem { /* private fields */ }Trait Implementations§
Source§impl<W: Iterator<Item = Value>> Converter<Commit, Redeem> for SimpleFinalizer<W>
impl<W: Iterator<Item = Value>> Converter<Commit, Redeem> for SimpleFinalizer<W>
Source§type Error = FinalizeError
type Error = FinalizeError
The error type returned by the methods on this trait.
Source§fn convert_witness(
&mut self,
data: &PostOrderIterItem<&CommitNode>,
_: &NoWitness,
) -> Result<Value, Self::Error>
fn convert_witness( &mut self, data: &PostOrderIterItem<&CommitNode>, _: &NoWitness, ) -> Result<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>,
_: Option<&Arc<RedeemNode>>,
_: &NoDisconnect,
) -> Result<Arc<RedeemNode>, Self::Error>
fn convert_disconnect( &mut self, _: &PostOrderIterItem<&CommitNode>, _: Option<&Arc<RedeemNode>>, _: &NoDisconnect, ) -> Result<Arc<RedeemNode>, 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>,
inner: Inner<&Arc<RedeemNode>, &Arc<RedeemNode>, &Value>,
) -> Result<Arc<RedeemData>, Self::Error>
fn convert_data( &mut self, data: &PostOrderIterItem<&CommitNode>, inner: Inner<&Arc<RedeemNode>, &Arc<RedeemNode>, &Value>, ) -> Result<Arc<RedeemData>, 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 Marker for Redeem
impl Marker for Redeem
Source§type CachedData = Arc<RedeemData>
type CachedData = Arc<RedeemData>
Precomputed data about the node, such as its type arrow or various Merkle roots.
Source§type Disconnect = Arc<Node<Redeem>>
type Disconnect = Arc<Node<Redeem>>
Type of disconnect data attached to DAGs of this node type.
Source§type SharingId = Ihr
type SharingId = Ihr
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<RedeemData>) -> Option<Ihr>
fn compute_sharing_id(_: Cmr, cached_data: &Arc<RedeemData>) -> Option<Ihr>
Yields the sharing ID for a given type, starting from its CMR and its cached data. Read more
Source§impl Ord for Redeem
impl Ord for Redeem
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Redeem
impl PartialOrd for Redeem
impl Copy for Redeem
impl Eq for Redeem
impl StructuralPartialEq for Redeem
Auto Trait Implementations§
impl Freeze for Redeem
impl RefUnwindSafe for Redeem
impl Send for Redeem
impl Sync for Redeem
impl Unpin for Redeem
impl UnsafeUnpin for Redeem
impl UnwindSafe for Redeem
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