Struct bitcoin_hashes::sha256t::Hash[][src]

#[repr(transparent)]
pub struct Hash<T: Tag>(_, _);

Output of the SHA256t hash function.

Trait Implementations

impl<T: Tag> AsRef<[u8]> for Hash<T>[src]

impl<T: Tag> Borrow<[u8]> for Hash<T>[src]

impl<T: Tag> Clone for Hash<T>[src]

impl<T: Tag> Debug for Hash<T>[src]

impl<T: Tag> Default for Hash<T>[src]

impl<T: Tag> Deref for Hash<T>[src]

type Target = [u8]

The resulting type after dereferencing.

impl<'de, T: Tag> Deserialize<'de> for Hash<T>[src]

impl<T: Tag> Display for Hash<T>[src]

impl<T: Tag> FromStr for Hash<T>[src]

type Err = Error

The associated error which can be returned from parsing.

impl<T: Tag> Hash for Hash<T>[src]

type Engine = HashEngine

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 = [u8; 32]

The byte array that represents the hash internally

impl<T: Tag> Hash for Hash<T>[src]

impl<T: Tag> Index<Range<usize>> for Hash<T>[src]

type Output = [u8]

The returned type after indexing.

impl<T: Tag> Index<RangeFrom<usize>> for Hash<T>[src]

type Output = [u8]

The returned type after indexing.

impl<T: Tag> Index<RangeFull> for Hash<T>[src]

type Output = [u8]

The returned type after indexing.

impl<T: Tag> Index<RangeTo<usize>> for Hash<T>[src]

type Output = [u8]

The returned type after indexing.

impl<T: Tag> Index<usize> for Hash<T>[src]

type Output = u8

The returned type after indexing.

impl<T: Tag> LowerHex for Hash<T>[src]

impl<T: Tag> Ord for Hash<T>[src]

impl<T: Tag> PartialEq<Hash<T>> for Hash<T>[src]

impl<T: Tag> PartialOrd<Hash<T>> for Hash<T>[src]

impl<T: Tag> Serialize for Hash<T>[src]

impl<T: Tag> Copy for Hash<T>[src]

impl<T: Tag> Eq for Hash<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Hash<T> where
    T: RefUnwindSafe

impl<T> Send for Hash<T> where
    T: Send

impl<T> Sync for Hash<T> where
    T: Sync

impl<T> Unpin for Hash<T> where
    T: Unpin

impl<T> UnwindSafe for Hash<T> where
    T: UnwindSafe

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> FromHex for T where
    T: Hash
[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.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]