[][src]Struct bitcoin_hashes::sha256::Midstate

pub struct Midstate(pub [u8; 32]);

Output of the SHA256 hash function

Methods

impl Midstate[src]

pub fn from_inner(inner: [u8; 32]) -> Self[src]

Construct a new midstate from the inner value.

pub fn from_slice(sl: &[u8]) -> Result<Midstate, Error>[src]

Copies a byte slice into the Midstate object.

pub fn into_inner(self) -> [u8; 32][src]

Unwraps the Midstate and returns the underlying byte array.

Trait Implementations

impl AsRef<[u8]> for Midstate[src]

impl Borrow<[u8]> for Midstate[src]

impl Clone for Midstate[src]

impl Copy for Midstate[src]

impl Debug for Midstate[src]

impl Default for Midstate[src]

impl Deref for Midstate[src]

type Target = [u8]

The resulting type after dereferencing.

impl Display for Midstate[src]

impl Eq for Midstate[src]

impl FromHex for Midstate[src]

impl FromStr for Midstate[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Midstate[src]

impl Index<Range<usize>> for Midstate[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFrom<usize>> for Midstate[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFull> for Midstate[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeTo<usize>> for Midstate[src]

type Output = [u8]

The returned type after indexing.

impl Index<usize> for Midstate[src]

type Output = u8

The returned type after indexing.

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]

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> 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]

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.