Struct bitcoin::util::taproot::TapSighashHash [−][src]
#[repr(transparent)]pub struct TapSighashHash(_);
Taproot-tagged hash for the taproot signature hash
Implementations
impl TapSighashHash
[src]
impl TapSighashHash
[src]pub fn from_hash(inner: Hash<TapSighashTag>) -> TapSighashHash
[src]
Create this type from the inner hash type.
pub fn as_hash(&self) -> Hash<TapSighashTag>
[src]
Convert this type into the inner hash type.
Trait Implementations
impl Clone for TapSighashHash
[src]
impl Clone for TapSighashHash
[src]fn clone(&self) -> TapSighashHash
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TapSighashHash
[src]
impl Default for TapSighashHash
[src]fn default() -> TapSighashHash
[src]
impl Deref for TapSighashHash
[src]
impl Deref for TapSighashHash
[src]impl<'de> Deserialize<'de> for TapSighashHash
[src]
impl<'de> Deserialize<'de> for TapSighashHash
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<TapSighashHash, D::Error>
[src]
impl From<Hash<TapSighashTag>> for TapSighashHash
[src]
impl From<Hash<TapSighashTag>> for TapSighashHash
[src]fn from(inner: Hash<TapSighashTag>) -> TapSighashHash
[src]
impl From<TapSighashHash> for Hash<TapSighashTag>
[src]
impl From<TapSighashHash> for Hash<TapSighashTag>
[src]fn from(hashtype: TapSighashHash) -> Hash<TapSighashTag>
[src]
impl FromStr for TapSighashHash
[src]
impl FromStr for TapSighashHash
[src]impl Hash for TapSighashHash
[src]
impl Hash for TapSighashHash
[src]impl Hash for TapSighashHash
[src]
impl Hash for TapSighashHash
[src]type Engine = <Hash<TapSighashTag> 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<TapSighashTag> 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<TapSighashHash, 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 TapSighashHash
[src]
impl Index<Range<usize>> for TapSighashHash
[src]impl Index<RangeFrom<usize>> for TapSighashHash
[src]
impl Index<RangeFrom<usize>> for TapSighashHash
[src]impl Index<RangeFull> for TapSighashHash
[src]
impl Index<RangeFull> for TapSighashHash
[src]impl Index<RangeTo<usize>> for TapSighashHash
[src]
impl Index<RangeTo<usize>> for TapSighashHash
[src]impl Index<usize> for TapSighashHash
[src]
impl Index<usize> for TapSighashHash
[src]impl Ord for TapSighashHash
[src]
impl Ord for TapSighashHash
[src]impl PartialEq<TapSighashHash> for TapSighashHash
[src]
impl PartialEq<TapSighashHash> for TapSighashHash
[src]fn eq(&self, other: &TapSighashHash) -> bool
[src]
fn ne(&self, other: &TapSighashHash) -> bool
[src]
impl PartialOrd<TapSighashHash> for TapSighashHash
[src]
impl PartialOrd<TapSighashHash> for TapSighashHash
[src]fn partial_cmp(&self, other: &TapSighashHash) -> 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 TapSighashHash
[src]
impl SerdeHash for TapSighashHash
[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 TapSighashHash
[src]
impl Serialize for TapSighashHash
[src]impl Copy for TapSighashHash
[src]
impl Eq for TapSighashHash
[src]
impl StructuralEq for TapSighashHash
[src]
impl StructuralPartialEq for TapSighashHash
[src]
Auto Trait Implementations
impl RefUnwindSafe for TapSighashHash
impl Send for TapSighashHash
impl Sync for TapSighashHash
impl Unpin for TapSighashHash
impl UnwindSafe for TapSighashHash
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>,