pub enum AddressBytes {
P2PK65(Box<P2PK65Bytes>),
P2PK33(Box<P2PK33Bytes>),
P2PKH(Box<P2PKHBytes>),
P2SH(Box<P2SHBytes>),
P2WPKH(Box<P2WPKHBytes>),
P2WSH(Box<P2WSHBytes>),
P2TR(Box<P2TRBytes>),
P2A(Box<P2ABytes>),
}Variants§
P2PK65(Box<P2PK65Bytes>)
P2PK33(Box<P2PK33Bytes>)
P2PKH(Box<P2PKHBytes>)
P2SH(Box<P2SHBytes>)
P2WPKH(Box<P2WPKHBytes>)
P2WSH(Box<P2WSHBytes>)
P2TR(Box<P2TRBytes>)
P2A(Box<P2ABytes>)
Implementations§
Source§impl AddressBytes
impl AddressBytes
Source§impl AddressBytes
impl AddressBytes
Trait Implementations§
Source§impl Debug for AddressBytes
impl Debug for AddressBytes
Source§impl From<&AddressBytes> for AddressHash
impl From<&AddressBytes> for AddressHash
Source§fn from(address_bytes: &AddressBytes) -> Self
fn from(address_bytes: &AddressBytes) -> Self
Converts to this type from the input type.
Source§impl From<&AddressBytes> for OutputType
impl From<&AddressBytes> for OutputType
Source§fn from(bytes: &AddressBytes) -> Self
fn from(bytes: &AddressBytes) -> Self
Converts to this type from the input type.
Source§impl From<P2ABytes> for AddressBytes
impl From<P2ABytes> for AddressBytes
Source§impl From<P2PK33Bytes> for AddressBytes
impl From<P2PK33Bytes> for AddressBytes
Source§fn from(value: P2PK33Bytes) -> Self
fn from(value: P2PK33Bytes) -> Self
Converts to this type from the input type.
Source§impl From<P2PK65Bytes> for AddressBytes
impl From<P2PK65Bytes> for AddressBytes
Source§fn from(value: P2PK65Bytes) -> Self
fn from(value: P2PK65Bytes) -> Self
Converts to this type from the input type.
Source§impl From<P2PKHBytes> for AddressBytes
impl From<P2PKHBytes> for AddressBytes
Source§fn from(value: P2PKHBytes) -> Self
fn from(value: P2PKHBytes) -> Self
Converts to this type from the input type.
Source§impl From<P2SHBytes> for AddressBytes
impl From<P2SHBytes> for AddressBytes
Source§impl From<P2TRBytes> for AddressBytes
impl From<P2TRBytes> for AddressBytes
Source§impl From<P2WPKHBytes> for AddressBytes
impl From<P2WPKHBytes> for AddressBytes
Source§fn from(value: P2WPKHBytes) -> Self
fn from(value: P2WPKHBytes) -> Self
Converts to this type from the input type.
Source§impl From<P2WSHBytes> for AddressBytes
impl From<P2WSHBytes> for AddressBytes
Source§fn from(value: P2WSHBytes) -> Self
fn from(value: P2WSHBytes) -> Self
Converts to this type from the input type.
Source§impl FromStr for AddressBytes
impl FromStr for AddressBytes
Source§impl Hash for AddressBytes
impl Hash for AddressBytes
Source§impl Ord for AddressBytes
impl Ord for AddressBytes
Source§fn cmp(&self, other: &AddressBytes) -> Ordering
fn cmp(&self, other: &AddressBytes) -> 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 for AddressBytes
impl PartialEq for AddressBytes
Source§impl PartialOrd for AddressBytes
impl PartialOrd for AddressBytes
Source§impl TryFrom<&AddressBytes> for Address
impl TryFrom<&AddressBytes> for Address
Source§impl TryFrom<&ScriptBuf> for AddressBytes
impl TryFrom<&ScriptBuf> for AddressBytes
Source§impl TryFrom<(&ScriptBuf, OutputType)> for AddressBytes
impl TryFrom<(&ScriptBuf, OutputType)> for AddressBytes
impl Eq for AddressBytes
impl StructuralPartialEq for AddressBytes
Auto Trait Implementations§
impl Freeze for AddressBytes
impl RefUnwindSafe for AddressBytes
impl Send for AddressBytes
impl Sync for AddressBytes
impl Unpin for AddressBytes
impl UnwindSafe for AddressBytes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more