pub enum TransparentAddress {
PublicKeyHash([u8; 20]),
ScriptHash([u8; 20]),
}
Expand description
A transparent address corresponding to either a public key hash or a script hash.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TransparentAddress
impl Clone for TransparentAddress
Source§fn clone(&self) -> TransparentAddress
fn clone(&self) -> TransparentAddress
Returns a duplicate 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 TransparentAddress
impl Debug for TransparentAddress
Source§impl Hash for TransparentAddress
impl Hash for TransparentAddress
Source§impl Ord for TransparentAddress
impl Ord for TransparentAddress
Source§fn cmp(&self, other: &TransparentAddress) -> Ordering
fn cmp(&self, other: &TransparentAddress) -> 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 TransparentAddress
impl PartialEq for TransparentAddress
Source§impl PartialOrd for TransparentAddress
impl PartialOrd for TransparentAddress
Source§impl TryFromAddress for TransparentAddress
impl TryFromAddress for TransparentAddress
Source§type Error = ()
type Error = ()
Conversion errors for the user type (e.g. failing to parse the data passed to
[
Self::try_from_sapling
] as a valid Sapling address).fn try_from_transparent_p2pkh( _net: NetworkType, data: [u8; 20], ) -> Result<Self, ConversionError<Self::Error>>
fn try_from_transparent_p2sh( _net: NetworkType, data: [u8; 20], ) -> Result<Self, ConversionError<Self::Error>>
fn try_from_sprout( net: NetworkType, data: [u8; 64], ) -> Result<Self, ConversionError<Self::Error>>
fn try_from_sapling( net: NetworkType, data: [u8; 43], ) -> Result<Self, ConversionError<Self::Error>>
fn try_from_unified( net: NetworkType, data: Address, ) -> Result<Self, ConversionError<Self::Error>>
fn try_from_tex( net: NetworkType, data: [u8; 20], ) -> Result<Self, ConversionError<Self::Error>>
impl Copy for TransparentAddress
impl Eq for TransparentAddress
impl StructuralPartialEq for TransparentAddress
Auto Trait Implementations§
impl Freeze for TransparentAddress
impl RefUnwindSafe for TransparentAddress
impl Send for TransparentAddress
impl Sync for TransparentAddress
impl Unpin for TransparentAddress
impl UnwindSafe for TransparentAddress
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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