Trait SpendableInputInfo

Source
pub trait SpendableInputInfo:
    Send
    + Sync
    + Clone {
    // Required methods
    fn get_prevout(&self) -> &TxOut;
    fn get_outpoint(&self) -> OutPoint;
}
Expand description

Trait for extracting information from a spendable input. This allows different input types (SpendableUtxo, SpendableTxIn) to be used interchangeably.

Required Methods§

Source

fn get_prevout(&self) -> &TxOut

Returns a reference to the previous output (TxOut) for this input.

Source

fn get_outpoint(&self) -> OutPoint

Returns the outpoint for this input.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§