pub struct OutPoint {
pub txid: Txid,
pub index: u16,
}Expand description
A reference to a transaction output.
Differs from bitcoin::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: TxidThe referenced transaction’s txid.
index: u16The 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§
impl Copy for OutPoint
impl Eq for OutPoint
Source§impl Ord for OutPoint
impl Ord for OutPoint
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for OutPoint
impl PartialOrd for OutPoint
impl StructuralPartialEq for OutPoint
Source§impl Writeable for OutPoint
impl Writeable 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Reads a
Self in from the given LengthLimitedRead.