Struct bitcoin::blockdata::transaction::OutPoint [−][src]
Expand description
A reference to a transaction output
Fields
txid: TxidThe referenced transaction’s txid
vout: u32The index of the referenced output in its transaction’s vout
Implementations
Creates a “null” OutPoint.
This value is used for coinbase transactions because they don’t have any previous outputs.
Checks if an OutPoint is “null”.
Examples
use bitcoin::blockdata::constants::genesis_block;
use bitcoin::network::constants::Network;
let block = genesis_block(Network::Bitcoin);
let tx = &block.txdata[0];
// Coinbase transactions don't have any previous output.
assert_eq!(tx.input[0].previous_output.is_null(), true);Trait Implementations
Decode an object with a well-defined format
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for OutPoint
impl UnwindSafe for OutPoint
Blanket Implementations
Mutably borrows from an owned value. Read more