Struct bc::TapBranchHash
source · pub struct TapBranchHash(_);Implementations§
source§impl TapBranchHash
impl TapBranchHash
pub fn with_nodes(node1: TapNodeHash, node2: TapNodeHash) -> Self
Trait Implementations§
source§impl AsRef<<TapBranchHash as Wrapper>::Inner> for TapBranchHash
impl AsRef<<TapBranchHash as Wrapper>::Inner> for TapBranchHash
source§impl Borrow<<TapBranchHash as Wrapper>::Inner> for TapBranchHash
impl Borrow<<TapBranchHash as Wrapper>::Inner> for TapBranchHash
source§impl Borrow<[u8]> for TapBranchHash
impl Borrow<[u8]> for TapBranchHash
source§impl Clone for TapBranchHash
impl Clone for TapBranchHash
source§fn clone(&self) -> TapBranchHash
fn clone(&self) -> TapBranchHash
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 TapBranchHash
impl Debug for TapBranchHash
source§impl<'de> Deserialize<'de> for TapBranchHash
impl<'de> Deserialize<'de> for TapBranchHash
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for TapBranchHash
impl Display for TapBranchHash
source§impl From<TapBranchHash> for Bytes32
impl From<TapBranchHash> for Bytes32
source§fn from(wrapped: TapBranchHash) -> Self
fn from(wrapped: TapBranchHash) -> Self
Converts to this type from the input type.
source§impl From<TapBranchHash> for TapNodeHash
impl From<TapBranchHash> for TapNodeHash
source§fn from(v: TapBranchHash) -> Self
fn from(v: TapBranchHash) -> Self
Converts to this type from the input type.
source§impl FromHex for TapBranchHash
impl FromHex for TapBranchHash
source§fn from_byte_iter<I>(iter: I) -> Result<Self, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<Self, Error>where I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator
source§impl FromStr for TapBranchHash
impl FromStr for TapBranchHash
source§impl Hash for TapBranchHash
impl Hash for TapBranchHash
source§impl Index<RangeFull> for TapBranchHash
impl Index<RangeFull> for TapBranchHash
source§impl Index<RangeInclusive<usize>> for TapBranchHash
impl Index<RangeInclusive<usize>> for TapBranchHash
source§impl Index<RangeToInclusive<usize>> for TapBranchHash
impl Index<RangeToInclusive<usize>> for TapBranchHash
source§impl Index<usize> for TapBranchHash
impl Index<usize> for TapBranchHash
source§impl IntoTapHash for TapBranchHash
impl IntoTapHash for TapBranchHash
fn into_tap_hash(self) -> TapNodeHash
source§impl LowerHex for TapBranchHash
impl LowerHex for TapBranchHash
source§impl Ord for TapBranchHash
impl Ord for TapBranchHash
source§fn cmp(&self, other: &TapBranchHash) -> Ordering
fn cmp(&self, other: &TapBranchHash) -> 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<TapBranchHash> for TapBranchHash
impl PartialEq<TapBranchHash> for TapBranchHash
source§fn eq(&self, other: &TapBranchHash) -> bool
fn eq(&self, other: &TapBranchHash) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<TapBranchHash> for TapBranchHash
impl PartialOrd<TapBranchHash> for TapBranchHash
source§fn partial_cmp(&self, other: &TapBranchHash) -> Option<Ordering>
fn partial_cmp(&self, other: &TapBranchHash) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for TapBranchHash
impl Serialize for TapBranchHash
source§impl UpperHex for TapBranchHash
impl UpperHex for TapBranchHash
source§impl Wrapper for TapBranchHash
impl Wrapper for TapBranchHash
source§fn from_inner(inner: Self::Inner) -> Self
fn from_inner(inner: Self::Inner) -> Self
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &Self::Inner
fn as_inner(&self) -> &Self::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Unwraps the wrapper returning the inner type
impl Copy for TapBranchHash
impl Eq for TapBranchHash
impl StructuralEq for TapBranchHash
impl StructuralPartialEq for TapBranchHash
Auto Trait Implementations§
impl RefUnwindSafe for TapBranchHash
impl Send for TapBranchHash
impl Sync for TapBranchHash
impl Unpin for TapBranchHash
impl UnwindSafe for TapBranchHash
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.