pub struct TapNodeHash(/* private fields */);
Trait Implementations§
Source§impl AsRef<[u8]> for TapNodeHash
impl AsRef<[u8]> for TapNodeHash
Source§impl Borrow<[u8]> for TapNodeHash
impl Borrow<[u8]> for TapNodeHash
Source§impl Clone for TapNodeHash
impl Clone for TapNodeHash
Source§fn clone(&self) -> TapNodeHash
fn clone(&self) -> TapNodeHash
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 TapNodeHash
impl Debug for TapNodeHash
Source§impl<'de> Deserialize<'de> for TapNodeHash
impl<'de> Deserialize<'de> for TapNodeHash
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TapNodeHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TapNodeHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TapNodeHash
impl Display for TapNodeHash
Source§impl From<TapBranchHash> for TapNodeHash
impl From<TapBranchHash> for TapNodeHash
Source§fn from(v: TapBranchHash) -> TapNodeHash
fn from(v: TapBranchHash) -> TapNodeHash
Converts to this type from the input type.
Source§impl From<TapLeafHash> for TapNodeHash
impl From<TapLeafHash> for TapNodeHash
Source§fn from(v: TapLeafHash) -> TapNodeHash
fn from(v: TapLeafHash) -> TapNodeHash
Converts to this type from the input type.
Source§impl FromHex for TapNodeHash
impl FromHex for TapNodeHash
Source§fn from_byte_iter<I>(iter: I) -> Result<TapNodeHash, Error>
fn from_byte_iter<I>(iter: I) -> Result<TapNodeHash, Error>
Produce an object from a byte iterator
Source§impl FromStr for TapNodeHash
impl FromStr for TapNodeHash
Source§impl Hash for TapNodeHash
impl Hash for TapNodeHash
Source§impl Index<RangeFull> for TapNodeHash
impl Index<RangeFull> for TapNodeHash
Source§impl Index<RangeInclusive<usize>> for TapNodeHash
impl Index<RangeInclusive<usize>> for TapNodeHash
Source§type Output = <Array<u8, 32> as Index<RangeInclusive<usize>>>::Output
type Output = <Array<u8, 32> as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
Source§fn index(
&self,
index: RangeInclusive<usize>,
) -> &<TapNodeHash as Index<RangeInclusive<usize>>>::Output
fn index( &self, index: RangeInclusive<usize>, ) -> &<TapNodeHash as Index<RangeInclusive<usize>>>::Output
Performs the indexing (
container[index]
) operation. Read moreSource§impl Index<RangeToInclusive<usize>> for TapNodeHash
impl Index<RangeToInclusive<usize>> for TapNodeHash
Source§type Output = <Array<u8, 32> as Index<RangeInclusive<usize>>>::Output
type Output = <Array<u8, 32> as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
Source§fn index(
&self,
index: RangeToInclusive<usize>,
) -> &<TapNodeHash as Index<RangeToInclusive<usize>>>::Output
fn index( &self, index: RangeToInclusive<usize>, ) -> &<TapNodeHash as Index<RangeToInclusive<usize>>>::Output
Performs the indexing (
container[index]
) operation. Read moreSource§impl Index<usize> for TapNodeHash
impl Index<usize> for TapNodeHash
Source§impl IntoTapHash for TapNodeHash
impl IntoTapHash for TapNodeHash
fn into_tap_hash(self) -> TapNodeHash
Source§impl LowerHex for TapNodeHash
impl LowerHex for TapNodeHash
Source§impl Ord for TapNodeHash
impl Ord for TapNodeHash
Source§fn cmp(&self, other: &TapNodeHash) -> Ordering
fn cmp(&self, other: &TapNodeHash) -> 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 TapNodeHash
impl PartialEq for TapNodeHash
Source§impl PartialOrd for TapNodeHash
impl PartialOrd for TapNodeHash
Source§impl Serialize for TapNodeHash
impl Serialize for TapNodeHash
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 TapNodeHash
impl StrictDecode for TapNodeHash
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<TapNodeHash, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for TapNodeHash
impl StrictDumb for TapNodeHash
fn strict_dumb() -> TapNodeHash
Source§impl StrictEncode for TapNodeHash
impl StrictEncode for TapNodeHash
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 TapNodeHash
impl StrictTuple for TapNodeHash
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for TapNodeHash
impl StrictType for TapNodeHash
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
Source§impl UpperHex for TapNodeHash
impl UpperHex for TapNodeHash
Source§impl Wrapper for TapNodeHash
impl Wrapper for TapNodeHash
Source§fn from_inner(inner: <TapNodeHash as Wrapper>::Inner) -> TapNodeHash
fn from_inner(inner: <TapNodeHash as Wrapper>::Inner) -> TapNodeHash
Instantiates wrapper type with the inner data
Source§fn as_inner(&self) -> &<TapNodeHash as Wrapper>::Inner
fn as_inner(&self) -> &<TapNodeHash as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
Source§fn into_inner(self) -> <TapNodeHash as Wrapper>::Inner
fn into_inner(self) -> <TapNodeHash as Wrapper>::Inner
Unwraps the wrapper returning the inner type
impl Copy for TapNodeHash
impl Eq for TapNodeHash
impl StrictProduct for TapNodeHash
impl StructuralPartialEq for TapNodeHash
Auto Trait Implementations§
impl Freeze for TapNodeHash
impl RefUnwindSafe for TapNodeHash
impl Send for TapNodeHash
impl Sync for TapNodeHash
impl Unpin for TapNodeHash
impl UnwindSafe for TapNodeHash
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.