Struct bitcoin_hashes::siphash24::Hash [−][src]
#[repr(transparent)]pub struct Hash(_);
Output of the SipHash24 hash function.
Implementations
impl Hash
[src]
impl Hash
[src]pub fn hash_with_keys(k0: u64, k1: u64, data: &[u8]) -> Hash
[src]
Hash the given data with an engine with the provided keys.
pub fn hash_to_u64_with_keys(k0: u64, k1: u64, data: &[u8]) -> u64
[src]
Hash the given data directly to u64 with an engine with the provided keys.
pub fn from_engine_to_u64(e: HashEngine) -> u64
[src]
Produce a hash as u64 from the current state of a given engine
pub fn as_u64(&self) -> u64
[src]
Returns the (little endian) 64-bit integer representation of the hash value.
pub fn from_u64(hash: u64) -> Hash
[src]
Create a hash from its (little endian) 64-bit integer representation.
Trait Implementations
impl<'de> Deserialize<'de> for Hash
[src]
impl<'de> Deserialize<'de> for Hash
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Hash, D::Error>
[src]
impl Hash for Hash
[src]
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; 8]
The byte array that represents the hash internally
fn from_engine(e: HashEngine) -> Hash
[src]
const LEN: usize
[src]
fn from_slice(sl: &[u8]) -> Result<Hash, Error>
[src]
fn into_inner(self) -> Self::Inner
[src]
fn as_inner(&self) -> &Self::Inner
[src]
fn from_inner(inner: Self::Inner) -> Self
[src]
fn engine() -> Self::Engine
[src]
fn hash(data: &[u8]) -> Self
[src]
const DISPLAY_BACKWARD: bool
[src]
impl PartialOrd<Hash> for Hash
[src]
impl PartialOrd<Hash> for Hash
[src]impl Copy for Hash
[src]
impl Eq for Hash
[src]
impl StructuralEq for Hash
[src]
impl StructuralPartialEq for Hash
[src]
Auto Trait Implementations
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
Blanket Implementations
impl<T> FromHex for T where
T: Hash,
[src]
impl<T> FromHex for T where
T: Hash,
[src]pub fn from_byte_iter<I>(I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
[src]
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
fn from_hex(s: &str) -> Result<Self, Error>
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,