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

The output balance.

A reference to the transaction with the required unspent output.

A reference to the transaction output to be spent.

Methods

impl<'a> UnspentTxOutValue<'a>
[src]

Returns the output balance value.

Trait Implementations

impl<'a> Debug for UnspentTxOutValue<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Copy for UnspentTxOutValue<'a>
[src]

impl<'a> Clone for UnspentTxOutValue<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> From<u64> for UnspentTxOutValue<'a>
[src]

Performs the conversion.

impl<'a> From<&'a Transaction> for UnspentTxOutValue<'a>
[src]

Performs the conversion.

impl<'a> From<&'a TxOut> for UnspentTxOutValue<'a>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'a> Send for UnspentTxOutValue<'a>

impl<'a> Sync for UnspentTxOutValue<'a>