Skip to main content

HashValue

Trait HashValue 

Source
pub trait HashValue {
    // Required methods
    fn hash_one(&self, state: &RandomState) -> u64;
    fn hash_write(&self, hasher: &mut impl Hasher);
}

Required Methods§

Source

fn hash_one(&self, state: &RandomState) -> u64

Source

fn hash_write(&self, hasher: &mut impl Hasher)

Write this value into an existing hasher (same data as hash_one).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HashValue for IntervalDayTime

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for IntervalMonthDayNano

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for [u8]

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for bool

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for f16

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for f32

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for f64

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for i8

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for i16

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for i32

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for i64

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for i128

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for i256

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for str

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for u8

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for u16

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for u32

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for u64

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl HashValue for u128

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Source§

impl<T: HashValue + ?Sized> HashValue for &T

Source§

fn hash_one(&self, state: &RandomState) -> u64

Source§

fn hash_write(&self, hasher: &mut impl Hasher)

Implementors§