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§
Sourcefn get_prevout(&self) -> &TxOut
fn get_prevout(&self) -> &TxOut
Returns a reference to the previous output (TxOut) for this input.
Sourcefn get_outpoint(&self) -> OutPoint
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.