Enum Prevouts
pub enum Prevouts<'u, T>{
One(usize, T),
All(&'u [T]),
}
Expand description
Contains outputs of previous transactions. In the case SchnorrSighashType
variant is
SIGHASH_ANYONECANPAY
, Prevouts::One
may be used.
Variants§
One(usize, T)
One
variant allows provision of the single prevout needed. It’s useful, for example, when
modifier SIGHASH_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 SIGHASH_ANYONECANPAY
is not provided, or when the caller is giving all prevouts so
the same variable can be used for multiple inputs.
Trait Implementations§
§impl<'u, T> Ord for Prevouts<'u, T>
impl<'u, T> Ord for Prevouts<'u, T>
§impl<'u, T> PartialOrd for Prevouts<'u, T>
impl<'u, T> PartialOrd for Prevouts<'u, T>
impl<'u, T> Eq for Prevouts<'u, T>
impl<'u, T> StructuralPartialEq for Prevouts<'u, T>
Auto Trait Implementations§
impl<'u, T> Freeze for Prevouts<'u, T>where
T: Freeze,
impl<'u, T> RefUnwindSafe for Prevouts<'u, T>where
T: RefUnwindSafe,
impl<'u, T> Send for Prevouts<'u, T>
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request