pub struct OutPoint {
pub txid: Txid,
pub vout: u32,
}Expand description
Fields§
§txid: TxidThe referenced transaction’s txid.
vout: u32The index of the referenced output in its transaction’s vout.
Implementations§
Source§impl OutPoint
impl OutPoint
Sourcepub const SIZE: usize
pub const SIZE: usize
The number of bytes that an outpoint contributes to the size of a transaction.
Sourcepub const COINBASE_PREVOUT: Self
pub const COINBASE_PREVOUT: Self
The OutPoint used in a coinbase prevout.
This is used as the dummy input for coinbase transactions because they don’t have any previous outputs. In other words, does not point to a real transaction.
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for OutPoint
Available on crate feature arbitrary only.
impl<'a> Arbitrary<'a> for OutPoint
Available on crate feature
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl<'de> Deserialize<'de> for OutPoint
Available on crate feature serde only.
impl<'de> Deserialize<'de> for OutPoint
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for OutPoint
impl Ord for OutPoint
Source§impl PartialOrd for OutPoint
impl PartialOrd 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 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