Struct chain_impl_mockchain::utxo::TransactionUnspents
source · struct TransactionUnspents<OutAddress>(FastSparseArray<Output<OutAddress>>);
Expand description
Hold all the individual outputs that remain unspent
Tuple Fields§
§0: FastSparseArray<Output<OutAddress>>
Implementations§
source§impl<OutAddress: Clone> TransactionUnspents<OutAddress>
impl<OutAddress: Clone> TransactionUnspents<OutAddress>
pub fn from_outputs(outs: &[(TransactionIndex, Output<OutAddress>)]) -> Self
pub fn remove_input( &self, index: TransactionIndex ) -> Result<(Self, Output<OutAddress>), Error>
Trait Implementations§
source§impl<OutAddress: Clone> Clone for TransactionUnspents<OutAddress>
impl<OutAddress: Clone> Clone for TransactionUnspents<OutAddress>
source§fn clone(&self) -> TransactionUnspents<OutAddress>
fn clone(&self) -> TransactionUnspents<OutAddress>
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<OutAddress: Debug> Debug for TransactionUnspents<OutAddress>
impl<OutAddress: Debug> Debug for TransactionUnspents<OutAddress>
source§impl<OutAddress: PartialEq> PartialEq<TransactionUnspents<OutAddress>> for TransactionUnspents<OutAddress>
impl<OutAddress: PartialEq> PartialEq<TransactionUnspents<OutAddress>> for TransactionUnspents<OutAddress>
source§fn eq(&self, other: &TransactionUnspents<OutAddress>) -> bool
fn eq(&self, other: &TransactionUnspents<OutAddress>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<OutAddress: Eq> Eq for TransactionUnspents<OutAddress>
impl<OutAddress> StructuralEq for TransactionUnspents<OutAddress>
impl<OutAddress> StructuralPartialEq for TransactionUnspents<OutAddress>
Auto Trait Implementations§
impl<OutAddress> RefUnwindSafe for TransactionUnspents<OutAddress>where OutAddress: RefUnwindSafe,
impl<OutAddress> Send for TransactionUnspents<OutAddress>where OutAddress: Send + Sync,
impl<OutAddress> Sync for TransactionUnspents<OutAddress>where OutAddress: Send + Sync,
impl<OutAddress> Unpin for TransactionUnspents<OutAddress>
impl<OutAddress> UnwindSafe for TransactionUnspents<OutAddress>where OutAddress: RefUnwindSafe,
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