ConstHash

Trait ConstHash 

Source
pub trait ConstHash {
    // Required method
    fn const_hash(&self) -> u64;
}
Expand description

Minimalist substitute of Hash that we can call in const fn.

Required Methods§

Source

fn const_hash(&self) -> u64

Implementations on Foreign Types§

Source§

impl ConstHash for &str

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for bool

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for char

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for i8

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for i16

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for i32

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for i64

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for i128

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for isize

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for u8

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for u16

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for u32

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for u64

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for u128

Source§

fn const_hash(&self) -> u64

Source§

impl ConstHash for usize

Source§

fn const_hash(&self) -> u64

Source§

impl<T: ConstHash + Sized> ConstHash for Option<T>

Source§

fn const_hash(&self) -> u64

Source§

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

Source§

fn const_hash(&self) -> u64

Implementors§