[][src]Struct lnpbp::tagged_hash::Midstate

pub struct Midstate(_);

Helper class for tests and creation of tagged hashes with dynamically- defined tags. Do not use in all other cases; utilize bitcoin::hashes::sha256t type and [bitcoin::sha256t_hash_newtype!] macro instead.

Implementations

impl Midstate[src]

pub fn with(tag: impl AsRef<[u8]>) -> Self[src]

Constructs tagged hash midstate for a given tag data

Trait Implementations

impl AsMut<<Midstate as Wrapper>::Inner> for Midstate[src]

impl AsRef<<Midstate as Wrapper>::Inner> for Midstate[src]

impl Borrow<<Midstate as Wrapper>::Inner> for Midstate[src]

impl BorrowMut<<Midstate as Wrapper>::Inner> for Midstate[src]

impl Clone for Midstate[src]

impl Copy for Midstate[src]

impl Debug for Midstate[src]

impl Deref for Midstate[src]

type Target = Self::Inner

The resulting type after dereferencing.

impl DerefMut for Midstate[src]

impl Display for Midstate[src]

impl Eq for Midstate[src]

impl From<Slice32> for Midstate[src]

impl FromStr for Midstate[src]

type Err = <Self::Inner as FromStr>::Err

The associated error which can be returned from parsing.

impl Hash for Midstate[src]

impl LowerHex for Midstate[src]

impl Ord for Midstate[src]

impl PartialEq<Midstate> for Midstate[src]

impl PartialOrd<Midstate> for Midstate[src]

impl StructuralEq for Midstate[src]

impl StructuralPartialEq for Midstate[src]

impl UpperHex for Midstate[src]

impl Wrapper for Midstate[src]

type Inner = Slice32

Inner type wrapped by the current newtype

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToHex for T where
    T: LowerHex
[src]

pub fn to_hex(&self) -> String[src]

Outputs the hash in hexadecimal form

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.