Enum btc_transaction_utils::UnspentTxOutValue [−][src]
pub enum UnspentTxOutValue<'a> { Balance(u64), PrevTx(&'a Transaction), PrevOut(&'a TxOut), }
An auxiliary enumeration that helps to get the balance of the previous unspent transaction output.
Variants
Balance(u64)
The output balance.
PrevTx(&'a Transaction)
A reference to the transaction with the required unspent output.
PrevOut(&'a TxOut)
A reference to the transaction output to be spent.
Methods
impl<'a> UnspentTxOutValue<'a>
[src]
impl<'a> UnspentTxOutValue<'a>
Trait Implementations
impl<'a> Debug for UnspentTxOutValue<'a>
[src]
impl<'a> Debug for UnspentTxOutValue<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Copy for UnspentTxOutValue<'a>
[src]
impl<'a> Copy for UnspentTxOutValue<'a>
impl<'a> Clone for UnspentTxOutValue<'a>
[src]
impl<'a> Clone for UnspentTxOutValue<'a>
fn clone(&self) -> UnspentTxOutValue<'a>
[src]
fn clone(&self) -> UnspentTxOutValue<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> From<u64> for UnspentTxOutValue<'a>
[src]
impl<'a> From<u64> for UnspentTxOutValue<'a>
fn from(balance: u64) -> UnspentTxOutValue<'a>
[src]
fn from(balance: u64) -> UnspentTxOutValue<'a>
Performs the conversion.
impl<'a> From<&'a Transaction> for UnspentTxOutValue<'a>
[src]
impl<'a> From<&'a Transaction> for UnspentTxOutValue<'a>
fn from(tx_ref: &'a Transaction) -> UnspentTxOutValue
[src]
fn from(tx_ref: &'a Transaction) -> UnspentTxOutValue
Performs the conversion.
impl<'a> From<&'a TxOut> for UnspentTxOutValue<'a>
[src]
impl<'a> From<&'a TxOut> for UnspentTxOutValue<'a>
fn from(tx_out: &'a TxOut) -> UnspentTxOutValue<'a>
[src]
fn from(tx_out: &'a TxOut) -> UnspentTxOutValue<'a>
Performs the conversion.
Auto Trait Implementations
impl<'a> Send for UnspentTxOutValue<'a>
impl<'a> Send for UnspentTxOutValue<'a>
impl<'a> Sync for UnspentTxOutValue<'a>
impl<'a> Sync for UnspentTxOutValue<'a>