Struct xxhash2::Hash64
[−]
[src]
pub struct Hash64 { /* fields omitted */ }
Canonical representation of a 64-bit hash.
This structure provides a conversion from a 64-bit hash value to a list of bytes in a canonical format. Note that the bytes returned are not necessarily hex.
Methods
impl Hash64
[src]
fn bytes(&self) -> &[u8; 8]
Returns the underlying hash as a list of bytes in a canonical representation.
fn value(&self) -> u64
Returns this canonical hash value as a 64-bit integer.
Converts from the underlying list of bytes to an integer.
Trait Implementations
impl From<u64> for Hash64
[src]
fn from(val: u64) -> Hash64
Creates a new canonical representation of a 64-bit hash value.
The returned value can be viewed as a list of bytes.
impl From<[u8; 8]> for Hash64
[src]
fn from(val: [u8; 8]) -> Hash64
Creates a new canonical representation of a hash from the 8-byte canonical representation.
The returned value can be viewed as a u64
.