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 From<TxPosInBlock<'_>> for BlockId
impl From<TxPosInBlock<'_>> for BlockId
Source§fn from(pos: TxPosInBlock<'_>) -> Self
fn from(pos: TxPosInBlock<'_>) -> Self
Converts to this type from the input type.
Source§impl From<TxPosInBlock<'_>> for ConfirmationBlockTime
impl From<TxPosInBlock<'_>> 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>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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