pub struct OutPoint<'a> {
pub txid: Hash32<'a>,
pub vout: u32,
}Expand description
Reference to a specific output of a previous transaction.
Fields§
§txid: Hash32<'a>TXID of the referenced transaction (32 bytes, zero-copy).
vout: u32Index of the output in that transaction.
Implementations§
Source§impl<'a> OutPoint<'a>
impl<'a> OutPoint<'a>
Sourcepub fn parse(c: &mut Cursor<'a>) -> ParseResult<Self>
pub fn parse(c: &mut Cursor<'a>) -> ParseResult<Self>
Parse from cursor (36 bytes total).
Sourcepub fn is_coinbase(&self) -> bool
pub fn is_coinbase(&self) -> bool
true for a coinbase input (all-zero txid, vout = 0xffffffff).
Trait Implementations§
impl<'a> Copy 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> UnsafeUnpin for OutPoint<'a>
impl<'a> UnwindSafe for OutPoint<'a>
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