Struct bitcoin_hashes::siphash24::Hash [−][src]
#[repr(transparent)]pub struct Hash(_);
Expand description
Output of the SipHash24 hash function.
Implementations
Hash the given data with an engine with the provided keys.
Hash the given data directly to u64 with an engine with the provided keys.
Produce a hash as u64 from the current state of a given engine
Returns the (little endian) 64-bit integer representation of the hash value.
Trait Implementations
type Engine = HashEngine
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
Produce a hash from the current state of a given engine
Unwraps the hash and returns the underlying byte array
Unwraps the hash and returns a reference to the underlying byte array
Constructs a hash from the underlying byte array
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 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
Auto Trait Implementations
impl RefUnwindSafe for Hash
impl UnwindSafe for Hash
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn from_byte_iter<I>(I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_byte_iter<I>(I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator