Trait polars_utils::total_ord::TotalHash

source ·
pub trait TotalHash {
    // Required method
    fn tot_hash<H>(&self, state: &mut H)
       where H: Hasher;

    // Provided method
    fn tot_hash_slice<H>(data: &[Self], state: &mut H)
       where H: Hasher,
             Self: Sized { ... }
}
Expand description

Alternative trait for Hash. By consistently using this we can still be generic w.r.t Hash while being able to hash floats.

Required Methods§

source

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

Provided Methods§

source

fn tot_hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TotalHash for &str

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for &[u8]

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for bool

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for char

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for f32

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for f64

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for i8

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for i16

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for i32

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for i64

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for i128

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for isize

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for u8

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for u16

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for u32

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for u64

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for u128

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for usize

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl TotalHash for String

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

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

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

source§

impl<T: TotalHash> TotalHash for Option<T>

source§

fn tot_hash<H>(&self, state: &mut H)
where H: Hasher,

Implementors§

source§

impl<'a> TotalHash for BytesHash<'a>