Struct bitcoin_scripts::TapScript
source · pub struct TapScript(_);Expand description
Script at specific taproot script spend path for 0xC0 tapleaf version,
which semantics are defined in BIP-342.
Trait Implementations§
source§impl From<LockScript> for TapScript
impl From<LockScript> for TapScript
source§fn from(lock_script: LockScript) -> Self
fn from(lock_script: LockScript) -> Self
Converts to this type from the input type.
source§impl From<TapScript> for LeafScript
impl From<TapScript> for LeafScript
source§impl Ord for TapScript
impl Ord for TapScript
source§impl PartialEq<TapScript> for TapScript
impl PartialEq<TapScript> for TapScript
source§impl PartialOrd<TapScript> for TapScript
impl PartialOrd<TapScript> for TapScript
1.0.0 · source§fn 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 moresource§impl Wrapper for TapScript
impl Wrapper for TapScript
source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
source§fn as_inner_mut(&mut self) -> &mut Self::Inner
fn as_inner_mut(&mut self) -> &mut Self::Inner
Returns a mutable reference to the inner representation for the wrapper
type
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type