[][src]Struct siphasher::sip128::Hash128

pub struct Hash128 {
    pub h1: u64,
    pub h2: u64,
}

A 128-bit (2x64) hash output

Fields

h1: u64h2: u64

Methods

impl Hash128[src]

pub fn as_bytes(&self) -> [u8; 16][src]

Convert into a 16-bytes vector

pub fn as_u128(&self) -> u128[src]

Convert into a u128

pub fn as_u64(&self) -> (u64, u64)[src]

Convert into (u64, u64)

Trait Implementations

impl Clone for Hash128[src]

impl Copy for Hash128[src]

impl Debug for Hash128[src]

impl Default for Hash128[src]

impl From<u128> for Hash128[src]

impl Into<u128> for Hash128[src]

Auto Trait Implementations

impl Send for Hash128

impl Sync for Hash128

impl Unpin for Hash128

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.