Struct bpstd::TapBranchHash 
source · pub struct TapBranchHash(/* private fields */);Implementations§
source§impl TapBranchHash
 
impl TapBranchHash
pub fn with_nodes(node1: TapNodeHash, node2: TapNodeHash) -> TapBranchHash
Trait Implementations§
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 ConsensusDecode for TapBranchHash
 
impl ConsensusDecode for TapBranchHash
fn consensus_decode( reader: &mut impl Read ) -> Result<TapBranchHash, ConsensusDecodeError>
fn consensus_deserialize( bytes: impl AsRef<[u8]> ) -> Result<Self, ConsensusDecodeError>
source§impl ConsensusEncode for TapBranchHash
 
impl ConsensusEncode for TapBranchHash
source§impl Debug for TapBranchHash
 
impl Debug for TapBranchHash
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>
 
fn from_byte_iter<I>(iter: I) -> Result<TapBranchHash, Error>
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 = <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>
) -> &<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 = <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>
) -> &<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 for TapBranchHash
 
impl PartialEq 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 for TapBranchHash
 
impl PartialOrd 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 StrictDecode for TapBranchHash
 
impl StrictDecode for TapBranchHash
fn strict_decode( reader: &mut impl TypedRead ) -> Result<TapBranchHash, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
source§impl StrictDumb for TapBranchHash
 
impl StrictDumb for TapBranchHash
fn strict_dumb() -> TapBranchHash
source§impl StrictEncode for TapBranchHash
 
impl StrictEncode for TapBranchHash
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 TapBranchHash
 
impl StrictTuple for TapBranchHash
const FIELD_COUNT: u8 = 1u8
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
source§impl StrictType for TapBranchHash
 
impl StrictType for TapBranchHash
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
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 StrictProduct for TapBranchHash
impl StructuralPartialEq for TapBranchHash
Auto Trait Implementations§
impl Freeze for TapBranchHash
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<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<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.