Struct wallet::PubkeyScript [−][src]
A content of scriptPubkey from a transaction output
Implementations
impl PubkeyScript[src]
pub fn address(&self, network: Network) -> Option<Address>[src]
pub fn script_code(&self) -> ScriptCode[src]
Trait Implementations
impl AsMut<<PubkeyScript as Wrapper>::Inner> for PubkeyScript[src]
impl AsRef<<PubkeyScript as Wrapper>::Inner> for PubkeyScript[src]
impl Borrow<<PubkeyScript as Wrapper>::Inner> for PubkeyScript[src]
impl BorrowMut<<PubkeyScript as Wrapper>::Inner> for PubkeyScript[src]
fn borrow_mut(&mut self) -> &mut Self::Inner[src]
impl Clone for PubkeyScript[src]
fn clone(&self) -> PubkeyScript[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PubkeyScript[src]
impl Default for PubkeyScript[src]
fn default() -> PubkeyScript[src]
impl Deref for PubkeyScript[src]
type Target = Self::Inner
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
impl DerefMut for PubkeyScript[src]
impl Display for PubkeyScript[src]
impl Eq for PubkeyScript[src]
impl From<AddressCompat> for PubkeyScript[src]
fn from(payload: AddressCompat) -> Self[src]
impl From<AddressPayload> for PubkeyScript[src]
fn from(ap: AddressPayload) -> Self[src]
impl From<Compact> for PubkeyScript[src]
fn from(spkt: Compact) -> PubkeyScript[src]
impl From<Expanded> for PubkeyScript[src]
fn from(expanded: Expanded) -> PubkeyScript[src]
impl From<Script> for PubkeyScript[src]
impl From<WPubkeyHash> for PubkeyScript[src]
fn from(wpkh: WPubkeyHash) -> Self[src]
impl Hash for PubkeyScript[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl LowerHex for PubkeyScript[src]
impl Ord for PubkeyScript[src]
fn cmp(&self, other: &PubkeyScript) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<PubkeyScript> for PubkeyScript[src]
fn eq(&self, other: &PubkeyScript) -> bool[src]
fn ne(&self, other: &PubkeyScript) -> bool[src]
impl PartialOrd<PubkeyScript> for PubkeyScript[src]
fn partial_cmp(&self, other: &PubkeyScript) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl Strategy for PubkeyScript[src]
impl StructuralEq for PubkeyScript[src]
impl StructuralPartialEq for PubkeyScript[src]
impl TryFrom<PubkeyScript> for Compact[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(script_pubkey: PubkeyScript) -> Result<Self, Self::Error>[src]
impl UpperHex for PubkeyScript[src]
impl Wrapper for PubkeyScript[src]
type Inner = Script
Inner type wrapped by the current newtype
fn from_inner(inner: Self::Inner) -> Self[src]
fn as_inner(&self) -> &Self::Inner[src]
fn as_inner_mut(&mut self) -> &mut Self::Inner[src]
fn into_inner(self) -> Self::Inner[src]
pub fn to_inner(&self) -> Self::Inner[src]
pub fn copy(&self) -> Self where
Self::Inner: Copy, [src]
Self::Inner: Copy,
Auto Trait Implementations
impl RefUnwindSafe for PubkeyScript
impl Send for PubkeyScript
impl Sync for PubkeyScript
impl Unpin for PubkeyScript
impl UnwindSafe for PubkeyScript
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToHex for T where
T: LowerHex,
T: LowerHex,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,