Struct bp::TapBranchHash
source · pub struct TapBranchHash(_);
Implementations§
source§impl TapBranchHash
impl TapBranchHash
pub fn with_nodes(node1: TapNodeHash, node2: TapNodeHash) -> TapBranchHash
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<TapBranchHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TapBranchHash, <__D as Deserializer<'de>>::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 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 FromHex for TapBranchHash
impl FromHex for TapBranchHash
source§fn from_byte_iter<I>(iter: I) -> Result<TapBranchHash, Error>where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_byte_iter<I>(iter: I) -> Result<TapBranchHash, 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
§type Output = <<TapBranchHash as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
type Output = <<TapBranchHash as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
source§fn index(
&self,
index: RangeInclusive<usize>
) -> &<TapBranchHash as Index<RangeInclusive<usize>>>::Output
fn index( &self, index: RangeInclusive<usize> ) -> &<TapBranchHash as Index<RangeInclusive<usize>>>::Output
Performs the indexing (
container[index]
) operation. Read moresource§impl Index<RangeToInclusive<usize>> for TapBranchHash
impl Index<RangeToInclusive<usize>> for TapBranchHash
§type Output = <<TapBranchHash as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
type Output = <<TapBranchHash as Wrapper>::Inner as Index<RangeInclusive<usize>>>::Output
The returned type after indexing.
source§fn index(
&self,
index: RangeToInclusive<usize>
) -> &<TapBranchHash as Index<RangeToInclusive<usize>>>::Output
fn index( &self, index: RangeToInclusive<usize> ) -> &<TapBranchHash as Index<RangeToInclusive<usize>>>::Output
Performs the indexing (
container[index]
) operation. Read moresource§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§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 UpperHex for TapBranchHash
impl UpperHex for TapBranchHash
source§impl Wrapper for TapBranchHash
impl Wrapper for TapBranchHash
source§fn from_inner(inner: <TapBranchHash as Wrapper>::Inner) -> TapBranchHash
fn from_inner(inner: <TapBranchHash as Wrapper>::Inner) -> TapBranchHash
Instantiates wrapper type with the inner data
source§fn as_inner(&self) -> &<TapBranchHash as Wrapper>::Inner
fn as_inner(&self) -> &<TapBranchHash as Wrapper>::Inner
Returns reference to the inner representation for the wrapper type
source§fn into_inner(self) -> <TapBranchHash as Wrapper>::Inner
fn into_inner(self) -> <TapBranchHash as Wrapper>::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
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.