pub struct PubkeyHash(pub Array<u8, 20>);
Tuple Fields§
§0: Array<u8, 20>
Trait Implementations§
Source§impl AsRef<[u8]> for PubkeyHash
impl AsRef<[u8]> for PubkeyHash
Source§impl Borrow<[u8]> for PubkeyHash
impl Borrow<[u8]> for PubkeyHash
Source§impl Clone for PubkeyHash
impl Clone for PubkeyHash
Source§fn clone(&self) -> PubkeyHash
fn clone(&self) -> PubkeyHash
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 PubkeyHash
impl Debug for PubkeyHash
Source§impl<'de> Deserialize<'de> for PubkeyHash
impl<'de> Deserialize<'de> for PubkeyHash
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PubkeyHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PubkeyHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PubkeyHash
impl Display for PubkeyHash
Source§impl From<CompressedPk> for PubkeyHash
impl From<CompressedPk> for PubkeyHash
Source§fn from(pk: CompressedPk) -> PubkeyHash
fn from(pk: CompressedPk) -> PubkeyHash
Converts to this type from the input type.
Source§impl From<LegacyPk> for PubkeyHash
impl From<LegacyPk> for PubkeyHash
Source§fn from(pk: LegacyPk) -> PubkeyHash
fn from(pk: LegacyPk) -> PubkeyHash
Converts to this type from the input type.
Source§impl From<UncompressedPk> for PubkeyHash
impl From<UncompressedPk> for PubkeyHash
Source§fn from(pk: UncompressedPk) -> PubkeyHash
fn from(pk: UncompressedPk) -> PubkeyHash
Converts to this type from the input type.
Source§impl FromHex for PubkeyHash
impl FromHex for PubkeyHash
Source§fn from_byte_iter<I>(iter: I) -> Result<PubkeyHash, Error>
fn from_byte_iter<I>(iter: I) -> Result<PubkeyHash, Error>
Produce an object from a byte iterator
Source§impl FromStr for PubkeyHash
impl FromStr for PubkeyHash
Source§impl Hash for PubkeyHash
impl Hash for PubkeyHash
Source§impl Index<RangeFull> for PubkeyHash
impl Index<RangeFull> for PubkeyHash
Source§impl Index<RangeInclusive<usize>> for PubkeyHash
impl Index<RangeInclusive<usize>> for PubkeyHash
Source§type Output = <Array<u8, 20> as Index<RangeInclusive<usize>>>::Output
type Output = <Array<u8, 20> as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
Source§fn index(
&self,
index: RangeInclusive<usize>,
) -> &<PubkeyHash as Index<RangeInclusive<usize>>>::Output
fn index( &self, index: RangeInclusive<usize>, ) -> &<PubkeyHash as Index<RangeInclusive<usize>>>::Output
Performs the indexing (
container[index]
) operation. Read moreSource§impl Index<RangeToInclusive<usize>> for PubkeyHash
impl Index<RangeToInclusive<usize>> for PubkeyHash
Source§type Output = <Array<u8, 20> as Index<RangeInclusive<usize>>>::Output
type Output = <Array<u8, 20> as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
Source§fn index(
&self,
index: RangeToInclusive<usize>,
) -> &<PubkeyHash as Index<RangeToInclusive<usize>>>::Output
fn index( &self, index: RangeToInclusive<usize>, ) -> &<PubkeyHash as Index<RangeToInclusive<usize>>>::Output
Performs the indexing (
container[index]
) operation. Read moreSource§impl Index<usize> for PubkeyHash
impl Index<usize> for PubkeyHash
Source§impl LowerHex for PubkeyHash
impl LowerHex for PubkeyHash
Source§impl Ord for PubkeyHash
impl Ord for PubkeyHash
Source§fn cmp(&self, other: &PubkeyHash) -> Ordering
fn cmp(&self, other: &PubkeyHash) -> 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 PubkeyHash
impl PartialEq for PubkeyHash
Source§impl PartialOrd for PubkeyHash
impl PartialOrd for PubkeyHash
Source§impl Serialize for PubkeyHash
impl Serialize for PubkeyHash
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for PubkeyHash
impl StrictDecode for PubkeyHash
fn strict_decode(reader: &mut impl TypedRead) -> Result<PubkeyHash, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for PubkeyHash
impl StrictDumb for PubkeyHash
fn strict_dumb() -> PubkeyHash
Source§impl StrictEncode for PubkeyHash
impl StrictEncode for PubkeyHash
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictTuple for PubkeyHash
impl StrictTuple for PubkeyHash
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for PubkeyHash
impl StrictType for PubkeyHash
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
Source§impl UpperHex for PubkeyHash
impl UpperHex for PubkeyHash
Source§impl Wrapper for PubkeyHash
impl Wrapper for PubkeyHash
Source§fn from_inner(inner: <PubkeyHash as Wrapper>::Inner) -> PubkeyHash
fn from_inner(inner: <PubkeyHash as Wrapper>::Inner) -> PubkeyHash
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &<PubkeyHash as Wrapper>::Inner
fn as_inner(&self) -> &<PubkeyHash as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> <PubkeyHash as Wrapper>::Inner
fn into_inner(self) -> <PubkeyHash as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Copy for PubkeyHash
impl Eq for PubkeyHash
impl StrictProduct for PubkeyHash
impl StructuralPartialEq for PubkeyHash
Auto Trait Implementations§
impl Freeze for PubkeyHash
impl RefUnwindSafe for PubkeyHash
impl Send for PubkeyHash
impl Sync for PubkeyHash
impl Unpin for PubkeyHash
impl UnwindSafe for PubkeyHash
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<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
impl<Id, const LEN: usize, const REVERSE_STR: bool> ByteArray<LEN> for Id
Source§fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
fn from_byte_array(val: impl Into<[u8; LEN]>) -> Id
Constructs a wrapper type around a byte array.
Source§fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
fn from_slice(slice: impl AsRef<[u8]>) -> Result<Id, FromSliceError>
Constructs a byte array from the slice. Errors if the slice length
doesn’t match
LEN
constant generic.Source§fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
fn from_slice_unsafe(slice: impl AsRef<[u8]>) -> Id
Constructs a byte array from the slice. Expects the slice length
doesn’t match
LEN
constant generic. Read moreSource§fn to_byte_array(&self) -> [u8; LEN]
fn to_byte_array(&self) -> [u8; LEN]
Returns a byte array representation stored in the wrapped type.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.