Struct bitcoin_scripts::WitnessProgram
source · [−]pub struct WitnessProgram(_);
Expand description
Witness program: a part of post-segwit scriptPubkey
; a data pushed to the
stack following witness version
Trait Implementations
sourceimpl AsMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl AsMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
sourceimpl AsRef<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl AsRef<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
sourceimpl Borrow<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl Borrow<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
sourceimpl BorrowMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl BorrowMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
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 Clone for WitnessProgram
impl Clone for WitnessProgram
sourcefn clone(&self) -> WitnessProgram
fn clone(&self) -> WitnessProgram
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WitnessProgram
impl Debug for WitnessProgram
sourceimpl Default for WitnessProgram
impl Default for WitnessProgram
sourcefn default() -> WitnessProgram
fn default() -> WitnessProgram
Returns the “default value” for a type. Read more
sourceimpl Deref for WitnessProgram
impl Deref for WitnessProgram
sourceimpl DerefMut for WitnessProgram
impl DerefMut for WitnessProgram
sourceimpl Display for WitnessProgram
impl Display for WitnessProgram
sourceimpl From<TweakedPublicKey> for WitnessProgram
impl From<TweakedPublicKey> for WitnessProgram
sourcefn from(tpk: TweakedPublicKey) -> Self
fn from(tpk: TweakedPublicKey) -> Self
Converts to this type from the input type.
sourceimpl From<WPubkeyHash> for WitnessProgram
impl From<WPubkeyHash> for WitnessProgram
sourcefn from(wpkh: WPubkeyHash) -> Self
fn from(wpkh: WPubkeyHash) -> Self
Converts to this type from the input type.
sourceimpl From<WScriptHash> for WitnessProgram
impl From<WScriptHash> for WitnessProgram
sourcefn from(wsh: WScriptHash) -> Self
fn from(wsh: WScriptHash) -> Self
Converts to this type from the input type.
sourceimpl From<WitnessProgram> for Box<[u8]>
impl From<WitnessProgram> for Box<[u8]>
sourcefn from(wrapped: WitnessProgram) -> Self
fn from(wrapped: WitnessProgram) -> Self
Converts to this type from the input type.
sourceimpl Hash for WitnessProgram
impl Hash for WitnessProgram
sourceimpl Ord for WitnessProgram
impl Ord for WitnessProgram
sourceimpl PartialEq<WitnessProgram> for WitnessProgram
impl PartialEq<WitnessProgram> for WitnessProgram
sourcefn eq(&self, other: &WitnessProgram) -> bool
fn eq(&self, other: &WitnessProgram) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WitnessProgram) -> bool
fn ne(&self, other: &WitnessProgram) -> bool
This method tests for !=
.
sourceimpl PartialOrd<WitnessProgram> for WitnessProgram
impl PartialOrd<WitnessProgram> for WitnessProgram
sourcefn partial_cmp(&self, other: &WitnessProgram) -> Option<Ordering>
fn partial_cmp(&self, other: &WitnessProgram) -> 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 Strategy for WitnessProgram
impl Strategy for WitnessProgram
sourceimpl Wrapper for WitnessProgram
impl Wrapper for WitnessProgram
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 WitnessProgram
impl StructuralEq for WitnessProgram
impl StructuralPartialEq for WitnessProgram
Auto Trait Implementations
impl RefUnwindSafe for WitnessProgram
impl Send for WitnessProgram
impl Sync for WitnessProgram
impl Unpin for WitnessProgram
impl UnwindSafe for WitnessProgram
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