pub struct TxInRef<'a> { /* private fields */ }Expand description
A borrowed reference to a transaction input.
Implementations§
Source§impl<'a> TxInRef<'a>
impl<'a> TxInRef<'a>
Sourcepub fn new(transaction: &'a Transaction, index: usize) -> TxInRef<'a>
pub fn new(transaction: &'a Transaction, index: usize) -> TxInRef<'a>
Constructs a reference to the input with the given index of the given transaction.
Sourcepub fn transaction(&self) -> &Transaction
pub fn transaction(&self) -> &Transaction
Returns a reference to the borrowed transaction.
Trait Implementations§
impl<'a> Copy for TxInRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TxInRef<'a>
impl<'a> RefUnwindSafe for TxInRef<'a>
impl<'a> Send for TxInRef<'a>
impl<'a> Sync for TxInRef<'a>
impl<'a> Unpin for TxInRef<'a>
impl<'a> UnsafeUnpin for TxInRef<'a>
impl<'a> UnwindSafe for TxInRef<'a>
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