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§
source§impl AsMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl AsMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
source§impl AsRef<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl AsRef<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
source§impl Borrow<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl Borrow<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
source§impl BorrowMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
impl BorrowMut<<WitnessProgram as Wrapper>::Inner> for WitnessProgram
source§impl Clone for WitnessProgram
impl Clone for WitnessProgram
source§fn clone(&self) -> WitnessProgram
fn clone(&self) -> WitnessProgram
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WitnessProgram
impl Debug for WitnessProgram
source§impl Default for WitnessProgram
impl Default for WitnessProgram
source§fn default() -> WitnessProgram
fn default() -> WitnessProgram
Returns the “default value” for a type. Read more
source§impl Deref for WitnessProgram
impl Deref for WitnessProgram
source§impl DerefMut for WitnessProgram
impl DerefMut for WitnessProgram
source§impl Display for WitnessProgram
impl Display for WitnessProgram
source§impl From<TweakedPublicKey> for WitnessProgram
impl From<TweakedPublicKey> for WitnessProgram
source§fn from(tpk: TweakedPublicKey) -> Self
fn from(tpk: TweakedPublicKey) -> Self
Converts to this type from the input type.
source§impl From<WPubkeyHash> for WitnessProgram
impl From<WPubkeyHash> for WitnessProgram
source§fn from(wpkh: WPubkeyHash) -> Self
fn from(wpkh: WPubkeyHash) -> Self
Converts to this type from the input type.
source§impl From<WScriptHash> for WitnessProgram
impl From<WScriptHash> for WitnessProgram
source§fn from(wsh: WScriptHash) -> Self
fn from(wsh: WScriptHash) -> Self
Converts to this type from the input type.
source§impl From<WitnessProgram> for Box<[u8]>
impl From<WitnessProgram> for Box<[u8]>
source§fn from(wrapped: WitnessProgram) -> Self
fn from(wrapped: WitnessProgram) -> Self
Converts to this type from the input type.
source§impl Hash for WitnessProgram
impl Hash for WitnessProgram
source§impl Ord for WitnessProgram
impl Ord for WitnessProgram
source§fn cmp(&self, other: &WitnessProgram) -> Ordering
fn cmp(&self, other: &WitnessProgram) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<WitnessProgram> for WitnessProgram
impl PartialEq<WitnessProgram> for WitnessProgram
source§fn 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 ==.source§impl PartialOrd<WitnessProgram> for WitnessProgram
impl PartialOrd<WitnessProgram> for WitnessProgram
source§fn partial_cmp(&self, other: &WitnessProgram) -> Option<Ordering>
fn partial_cmp(&self, other: &WitnessProgram) -> Option<Ordering>
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 Strategy for WitnessProgram
impl Strategy for WitnessProgram
source§impl Wrapper for WitnessProgram
impl Wrapper for WitnessProgram
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