pub struct Outpoint<'a>(/* private fields */);Expand description
A Outpoint
Implementations§
Source§impl Outpoint<'_>
impl Outpoint<'_>
Sourcepub fn txid_le(&self) -> Hash256Digest
pub fn txid_le(&self) -> Hash256Digest
Extract the LE txid from the outpoint
Sourcepub fn vout_index(&self) -> u32
pub fn vout_index(&self) -> u32
Extract the outpoint’s index in the prevout tx’s vout
Trait Implementations§
Source§impl<'a> Ord for Outpoint<'a>
impl<'a> Ord for Outpoint<'a>
1.21.0 · 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<'a> PartialOrd for Outpoint<'a>
impl<'a> PartialOrd for Outpoint<'a>
impl<'a> Eq for Outpoint<'a>
impl<'a> StructuralPartialEq for Outpoint<'a>
Auto Trait Implementations§
impl<'a> Freeze for Outpoint<'a>
impl<'a> RefUnwindSafe for Outpoint<'a>
impl<'a> Send for Outpoint<'a>
impl<'a> Sync for Outpoint<'a>
impl<'a> Unpin for Outpoint<'a>
impl<'a> UnwindSafe for Outpoint<'a>
Blanket Implementations§
Source§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8] ⓘ
Source§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
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> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)