Struct btc_transaction_utils::TxInRef
[−]
[src]
pub struct TxInRef<'a> { /* fields omitted */ }
A borrowed reference to a transaction input.
Methods
impl<'a> TxInRef<'a>
[src]
pub fn new(transaction: &'a Transaction, index: usize) -> TxInRef<'a>
[src]
Constructs a reference to the input with the given index of the given transaction.
pub fn transaction(&self) -> &Transaction
[src]
Returns a reference to the borrowed transaction.
pub fn input(&self) -> &TxIn
[src]
Returns a reference to the input.
pub fn index(&self) -> usize
[src]
Returns the index of input.
Trait Implementations
impl<'a> Debug for TxInRef<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Copy for TxInRef<'a>
[src]
impl<'a> Clone for TxInRef<'a>
[src]
fn clone(&self) -> TxInRef<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more