Struct bitcoin_scripts::ScriptCode
source · pub struct ScriptCode(_);Expand description
A representation of scriptPubkey data used during SegWit signing procedure
Trait Implementations§
source§impl AsMut<<ScriptCode as Wrapper>::Inner> for ScriptCode
impl AsMut<<ScriptCode as Wrapper>::Inner> for ScriptCode
source§impl AsRef<<ScriptCode as Wrapper>::Inner> for ScriptCode
impl AsRef<<ScriptCode as Wrapper>::Inner> for ScriptCode
source§impl Borrow<<ScriptCode as Wrapper>::Inner> for ScriptCode
impl Borrow<<ScriptCode as Wrapper>::Inner> for ScriptCode
source§impl BorrowMut<<ScriptCode as Wrapper>::Inner> for ScriptCode
impl BorrowMut<<ScriptCode as Wrapper>::Inner> for ScriptCode
source§impl Clone for ScriptCode
impl Clone for ScriptCode
source§fn clone(&self) -> ScriptCode
fn clone(&self) -> ScriptCode
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 ScriptCode
impl Debug for ScriptCode
source§impl Default for ScriptCode
impl Default for ScriptCode
source§fn default() -> ScriptCode
fn default() -> ScriptCode
Returns the “default value” for a type. Read more
source§impl Deref for ScriptCode
impl Deref for ScriptCode
source§impl DerefMut for ScriptCode
impl DerefMut for ScriptCode
source§impl Display for ScriptCode
impl Display for ScriptCode
source§impl From<Script> for ScriptCode
impl From<Script> for ScriptCode
source§impl From<ScriptCode> for Script
impl From<ScriptCode> for Script
source§fn from(wrapped: ScriptCode) -> Self
fn from(wrapped: ScriptCode) -> Self
Converts to this type from the input type.
source§impl Hash for ScriptCode
impl Hash for ScriptCode
source§impl LowerHex for ScriptCode
impl LowerHex for ScriptCode
source§impl Ord for ScriptCode
impl Ord for ScriptCode
source§fn cmp(&self, other: &ScriptCode) -> Ordering
fn cmp(&self, other: &ScriptCode) -> 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<ScriptCode> for ScriptCode
impl PartialEq<ScriptCode> for ScriptCode
source§fn eq(&self, other: &ScriptCode) -> bool
fn eq(&self, other: &ScriptCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ScriptCode> for ScriptCode
impl PartialOrd<ScriptCode> for ScriptCode
source§fn partial_cmp(&self, other: &ScriptCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ScriptCode) -> 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 UpperHex for ScriptCode
impl UpperHex for ScriptCode
source§impl Wrapper for ScriptCode
impl Wrapper for ScriptCode
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