Struct lightning::chain::transaction::OutPoint
source · pub struct OutPoint {
pub txid: Txid,
pub index: u16,
}
Expand description
A reference to a transaction output.
Differs from bitcoin::blockdata::transaction::OutPoint as the index is a u16 instead of u32 due to LN’s restrictions on index values. Should reduce (possibly) unsafe conversions this way.
Fields§
§txid: Txid
The referenced transaction’s txid.
index: u16
The index of the referenced output in its transaction’s vout.
Implementations§
source§impl OutPoint
impl OutPoint
sourcepub fn into_bitcoin_outpoint(self) -> BitcoinOutPoint
pub fn into_bitcoin_outpoint(self) -> BitcoinOutPoint
Converts this OutPoint into the OutPoint field as used by rust-bitcoin
This is not exported to bindings users as the same type is used universally in the C bindings for all outpoints
Trait Implementations§
source§impl Ord for OutPoint
impl Ord for OutPoint
source§impl PartialEq for OutPoint
impl PartialEq for OutPoint
source§impl PartialOrd for OutPoint
impl PartialOrd for OutPoint
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Writeable for OutPoint
impl Writeable for OutPoint
impl Copy for OutPoint
impl Eq for OutPoint
impl StructuralPartialEq for OutPoint
Auto Trait Implementations§
impl Freeze for OutPoint
impl RefUnwindSafe for OutPoint
impl Send for OutPoint
impl Sync for OutPoint
impl Unpin for OutPoint
impl UnwindSafe for OutPoint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more