[][src]Struct bitcoin_hashes::ripemd160::Hash

pub struct Hash(_);

Output of the RIPEMD160 hash function

Trait Implementations

impl Hash for Hash[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; 20]

The byte array that represents the hash internally

fn hash(data: &[u8]) -> Self[src]

Hashes some bytes

const DISPLAY_BACKWARD: bool[src]

Flag indicating whether user-visible serializations of this hash should be backward. For some reason Satoshi decided this should be true for Sha256dHash, so here we are. Read more

impl Eq for Hash[src]

impl Ord for Hash[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialEq<Hash> for Hash[src]

impl Copy for Hash[src]

impl Clone for Hash[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<Hash> for Hash[src]

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

impl Default for Hash[src]

impl Deref for Hash[src]

type Target = [u8; 20]

The resulting type after dereferencing.

impl Debug for Hash[src]

impl Display for Hash[src]

impl Index<usize> for Hash[src]

type Output = u8

The returned type after indexing.

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

type Output = [u8]

The returned type after indexing.

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

type Output = [u8]

The returned type after indexing.

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

type Output = [u8]

The returned type after indexing.

impl Index<RangeFull> for Hash[src]

type Output = [u8]

The returned type after indexing.

impl Hash for Hash[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl LowerHex for Hash[src]

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

Auto Trait Implementations

impl Send for Hash

impl Sync for Hash

Blanket Implementations

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

fn to_hex(&Self) -> String[src]

Outputs the hash in hexadecimal form

impl<T> FromHex for T where
    T: Hash
[src]

fn from_hex(s: &str) -> Result<Self, Error>[src]

Produce an object from a hex string

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

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> From<T> for T[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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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