#[repr(transparent)]
pub struct BlockHash(_);
Expand description
Create this type from the inner hash type.
Convert this type into the inner hash type.
Immutably borrows from an owned value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Decode an object with a well-defined format
Returns the “default value” for a type. Read more
The resulting type after dereferencing.
Deserialize a value from raw data.
Formats the value using the given formatter. Read more
Encode an object with a well-defined format, should only ever error if
the underlying Write errors. Returns the number of bytes written on
success Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
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
The byte array that represents the hash internally
Length of the hash, in bytes
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
Produce a hash from the current state of a given engine
Copies a byte slice into a hash object
Constructs a hash from the underlying byte array
Unwraps the hash and returns the underlying byte array
Unwraps the hash and returns a reference to the underlying byte array
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
The returned type after indexing.
Performs the indexing (container[index]) operation. Read more
Formats the value using the given formatter.
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >=
operator. Read more
Serialize a value as raw data.
impl<T> Any for T where
T: 'static + ?Sized,
impl<T> Base32Len for T where
T: AsRef<[u8]>,
Calculate the base32 serialized length
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Error type if conversion fails
Check if all values are in range and return array-like struct of u5 values
Produce an object from a byte iterator
Produce an object from a hex string
impl<T, U> Into<U> for T where
U: From<T>,
Encode as base32 and write it to the supplied writer
Implementations shouldn’t allocate. Read more
Convert Self to base32 vector
Outputs the hash in hexadecimal form
Outputs the hash in hexadecimal form
Outputs the hash in hexadecimal form
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.