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
sourceimpl BorrowMut<<TapScript as Wrapper>::Inner> for TapScript
impl BorrowMut<<TapScript as Wrapper>::Inner> for TapScript
sourcefn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
fn borrow_mut(&mut self) -> &mut <Self as Wrapper>::Inner
Mutably borrows from an owned value. Read more
sourceimpl From<LockScript> for TapScript
impl From<LockScript> for TapScript
sourcefn from(lock_script: LockScript) -> Self
fn from(lock_script: LockScript) -> Self
Converts to this type from the input type.
sourceimpl From<TapScript> for LeafScript
impl From<TapScript> for LeafScript
sourceimpl Ord for TapScript
impl Ord for TapScript
sourceimpl PartialOrd<TapScript> for TapScript
impl PartialOrd<TapScript> for TapScript
sourcefn partial_cmp(&self, other: &TapScript) -> Option<Ordering>
fn partial_cmp(&self, other: &TapScript) -> 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
sourceimpl Wrapper for TapScript
impl Wrapper for TapScript
sourcefn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
sourcefn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
sourcefn 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 Read more
sourcefn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Eq for TapScript
impl StructuralEq for TapScript
impl StructuralPartialEq for TapScript
Auto Trait Implementations
impl RefUnwindSafe for TapScript
impl Send for TapScript
impl Sync for TapScript
impl Unpin for TapScript
impl UnwindSafe for TapScript
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