Struct bitcoin::util::taproot::TapBranchHash [−][src]
#[repr(transparent)]pub struct TapBranchHash(_);
Taproot-tagged hash for tapscript Merkle tree branches
Implementations
impl TapBranchHash
[src]
impl TapBranchHash
[src]pub fn from_hash(inner: Hash<TapBranchTag>) -> TapBranchHash
[src]
Create this type from the inner hash type.
pub fn as_hash(&self) -> Hash<TapBranchTag>
[src]
Convert this type into the inner hash type.
Trait Implementations
impl Clone for TapBranchHash
[src]
impl Clone for TapBranchHash
[src]fn clone(&self) -> TapBranchHash
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TapBranchHash
[src]
impl Default for TapBranchHash
[src]fn default() -> TapBranchHash
[src]
impl Deref for TapBranchHash
[src]
impl Deref for TapBranchHash
[src]impl<'de> Deserialize<'de> for TapBranchHash
[src]
impl<'de> Deserialize<'de> for TapBranchHash
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<TapBranchHash, D::Error>
[src]
impl From<Hash<TapBranchTag>> for TapBranchHash
[src]
impl From<Hash<TapBranchTag>> for TapBranchHash
[src]fn from(inner: Hash<TapBranchTag>) -> TapBranchHash
[src]
impl From<TapBranchHash> for Hash<TapBranchTag>
[src]
impl From<TapBranchHash> for Hash<TapBranchTag>
[src]fn from(hashtype: TapBranchHash) -> Hash<TapBranchTag>
[src]
impl FromStr for TapBranchHash
[src]
impl FromStr for TapBranchHash
[src]impl Hash for TapBranchHash
[src]
impl Hash for TapBranchHash
[src]impl Hash for TapBranchHash
[src]
impl Hash for TapBranchHash
[src]type Engine = <Hash<TapBranchTag> as Hash>::Engine
A hashing engine which bytes can be serialized into. It is expected
to implement the io::Write
trait, and to never return errors under
any conditions. Read more
type Inner = <Hash<TapBranchTag> as Hash>::Inner
The byte array that represents the hash internally
const LEN: usize
[src]
const DISPLAY_BACKWARD: bool
[src]
fn engine() -> Self::Engine
[src]
fn from_engine(e: Self::Engine) -> Self
[src]
fn from_slice(sl: &[u8]) -> Result<TapBranchHash, Error>
[src]
fn from_inner(inner: Self::Inner) -> Self
[src]
fn into_inner(self) -> Self::Inner
[src]
fn as_inner(&self) -> &Self::Inner
[src]
pub fn hash(data: &[u8]) -> Self
[src]
impl Index<Range<usize>> for TapBranchHash
[src]
impl Index<Range<usize>> for TapBranchHash
[src]impl Index<RangeFrom<usize>> for TapBranchHash
[src]
impl Index<RangeFrom<usize>> for TapBranchHash
[src]impl Index<RangeFull> for TapBranchHash
[src]
impl Index<RangeFull> for TapBranchHash
[src]impl Index<RangeTo<usize>> for TapBranchHash
[src]
impl Index<RangeTo<usize>> for TapBranchHash
[src]impl Index<usize> for TapBranchHash
[src]
impl Index<usize> for TapBranchHash
[src]impl Ord for TapBranchHash
[src]
impl Ord for TapBranchHash
[src]impl PartialEq<TapBranchHash> for TapBranchHash
[src]
impl PartialEq<TapBranchHash> for TapBranchHash
[src]fn eq(&self, other: &TapBranchHash) -> bool
[src]
fn ne(&self, other: &TapBranchHash) -> bool
[src]
impl PartialOrd<TapBranchHash> for TapBranchHash
[src]
impl PartialOrd<TapBranchHash> for TapBranchHash
[src]fn partial_cmp(&self, other: &TapBranchHash) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl SerdeHash for TapBranchHash
[src]
impl SerdeHash for TapBranchHash
[src]const N: usize
[src]
fn from_slice_delegated(sl: &[u8]) -> Result<Self, Error>
[src]
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn deserialize<'de, D>(
d: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
d: D
) -> Result<Self, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Serialize for TapBranchHash
[src]
impl Serialize for TapBranchHash
[src]impl Copy for TapBranchHash
[src]
impl Eq for TapBranchHash
[src]
impl StructuralEq for TapBranchHash
[src]
impl StructuralPartialEq for TapBranchHash
[src]
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
impl<T> FromHex for T where
T: Hash,
[src]
impl<T> FromHex for T where
T: Hash,
[src]pub fn from_byte_iter<I>(iter: I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
[src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_hex(s: &str) -> Result<Self, Error>
[src]
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
[src]
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
[src]pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
[src]
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
pub fn to_base32(&self) -> Vec<u5, Global>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,