Expand description
Contains outputs of previous transactions.
In the case SchnorrSighashType
variant is ANYONECANPAY
, Prevouts::One
may be provided
Variants
One(usize, T)
One
variant allows to provide the single Prevout needed. It’s useful for example
when modifier ANYONECANPAY
is provided, only prevout of the current input is needed.
The first usize
argument is the input index this TxOut
is referring to.
All(&'u [T])
When ANYONECANPAY
is not provided, or the caller is handy giving all prevouts so the same
variable can be used for multiple inputs.
Trait Implementations
sourceimpl<'u, T: Ord> Ord for Prevouts<'u, T> where
T: 'u + Borrow<TxOut>,
impl<'u, T: Ord> Ord for Prevouts<'u, T> where
T: 'u + Borrow<TxOut>,
sourceimpl<'u, T: PartialEq> PartialEq<Prevouts<'u, T>> for Prevouts<'u, T> where
T: 'u + Borrow<TxOut>,
impl<'u, T: PartialEq> PartialEq<Prevouts<'u, T>> for Prevouts<'u, T> where
T: 'u + Borrow<TxOut>,
sourceimpl<'u, T: PartialOrd> PartialOrd<Prevouts<'u, T>> for Prevouts<'u, T> where
T: 'u + Borrow<TxOut>,
impl<'u, T: PartialOrd> PartialOrd<Prevouts<'u, T>> for Prevouts<'u, T> where
T: 'u + Borrow<TxOut>,
sourcefn partial_cmp(&self, other: &Prevouts<'u, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Prevouts<'u, T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<'u, T: Eq> Eq for Prevouts<'u, T> where
T: 'u + Borrow<TxOut>,
impl<'u, T> StructuralEq for Prevouts<'u, T> where
T: 'u + Borrow<TxOut>,
impl<'u, T> StructuralPartialEq for Prevouts<'u, T> where
T: 'u + Borrow<TxOut>,
Auto Trait Implementations
impl<'u, T> RefUnwindSafe for Prevouts<'u, T> where
T: RefUnwindSafe,
impl<'u, T> Send for Prevouts<'u, T> where
T: Send + Sync,
impl<'u, T> Sync for Prevouts<'u, T> where
T: Sync,
impl<'u, T> Unpin for Prevouts<'u, T> where
T: Unpin,
impl<'u, T> UnwindSafe for Prevouts<'u, T> where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more