Struct bdk_chain::TxPosInBlock
source · pub struct TxPosInBlock<'b> {
pub block: &'b Block,
pub block_id: BlockId,
pub tx_pos: usize,
}
Expand description
Set of parameters sufficient to construct an Anchor
.
Typically used as an additional constraint on anchor:
for<'b> A: Anchor + From<TxPosInBlock<'b>>
.
Fields§
§block: &'b Block
Block in which the transaction appeared.
block_id: BlockId
Block’s BlockId
.
tx_pos: usize
Position in the block on which the transaction appeared.
Trait Implementations§
source§impl<'b> Clone for TxPosInBlock<'b>
impl<'b> Clone for TxPosInBlock<'b>
source§fn clone(&self) -> TxPosInBlock<'b>
fn clone(&self) -> TxPosInBlock<'b>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'b> Debug for TxPosInBlock<'b>
impl<'b> Debug for TxPosInBlock<'b>
source§impl<'b> From<TxPosInBlock<'b>> for BlockId
impl<'b> From<TxPosInBlock<'b>> for BlockId
source§fn from(pos: TxPosInBlock<'_>) -> Self
fn from(pos: TxPosInBlock<'_>) -> Self
Converts to this type from the input type.
source§impl<'b> From<TxPosInBlock<'b>> for ConfirmationBlockTime
impl<'b> From<TxPosInBlock<'b>> for ConfirmationBlockTime
source§fn from(pos: TxPosInBlock<'_>) -> Self
fn from(pos: TxPosInBlock<'_>) -> Self
Converts to this type from the input type.
source§impl<'b> PartialEq for TxPosInBlock<'b>
impl<'b> PartialEq for TxPosInBlock<'b>
source§fn eq(&self, other: &TxPosInBlock<'b>) -> bool
fn eq(&self, other: &TxPosInBlock<'b>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'b> Copy for TxPosInBlock<'b>
impl<'b> Eq for TxPosInBlock<'b>
impl<'b> StructuralPartialEq for TxPosInBlock<'b>
Auto Trait Implementations§
impl<'b> Freeze for TxPosInBlock<'b>
impl<'b> RefUnwindSafe for TxPosInBlock<'b>
impl<'b> Send for TxPosInBlock<'b>
impl<'b> Sync for TxPosInBlock<'b>
impl<'b> Unpin for TxPosInBlock<'b>
impl<'b> UnwindSafe for TxPosInBlock<'b>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more