pub struct Hmac<T: Hash>(_);
A hash computed from a RFC 2104 HMAC. Parameterized by the underlying hash function.
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
Produce a hash from the current state of a given engine
Length of the hash, in bytes
Copies a byte slice into a hash object
Unwraps the hash and returns the underlying byte array
Length of the hash's internal block size, 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
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
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
Formats the value using the given formatter.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
type Output = u8
The returned type after indexing.
Performs the indexing (container[index]
) operation.
type Output = [u8]
The returned type after indexing.
Performs the indexing (container[index]
) operation.
type Output = [u8]
The returned type after indexing.
Performs the indexing (container[index]
) operation.
type Output = [u8]
The returned type after indexing.
Performs the indexing (container[index]
) operation.
type Output = [u8]
The returned type after indexing.
Performs the indexing (container[index]
) operation.
Immutably borrows from an owned value. Read more
Outputs the hash in hexadecimal form
Parses a hex string as a hash object
type Owned = T
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
type Error = !
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more