Struct Hash128

struct Hash128 { ... }

A 128-bit (2x64) hash output

Fields

h1: u64
h2: u64

Implementations

impl Hash128

fn as_bytes(self: &Self) -> [u8; 16]

Convert into a 16-bytes vector

fn as_u128(self: &Self) -> u128

Convert into a u128

fn as_u64(self: &Self) -> (u64, u64)

Convert into (u64, u64)

impl Clone for Hash128

fn clone(self: &Self) -> Hash128

impl Copy for Hash128

impl Debug for Hash128

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Default for Hash128

fn default() -> Hash128

impl Freeze for Hash128

impl From for Hash128

fn from(v: u128) -> Self

impl RefUnwindSafe for Hash128

impl Send for Hash128

impl Sync for Hash128

impl Unpin for Hash128

impl UnsafeUnpin for Hash128

impl UnwindSafe for Hash128

impl<T> Any for Hash128

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Hash128

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Hash128

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Hash128

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Hash128

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Hash128

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Hash128

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Hash128

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>