Skip to main content

Crate phf_shared

Crate phf_shared 

Source
Expand description

ModulesΒ§

hasher πŸ”’

MacrosΒ§

array_impl πŸ”’
delegate_debug πŸ”’
Create an impl of FmtConst delegating to fmt::Debug for types that can deal with it.
impl_reflexive πŸ”’
impl PhfBorrow<T> for T
integer_impl πŸ”’
single_byte_impl πŸ”’
slice_impl πŸ”’
tuple_eq_impl πŸ”’
tuple_impl πŸ”’

StructsΒ§

Hashes

TraitsΒ§

FmtConst
Trait for printing types with const constructors, used by phf_codegen and phf_macros.
PhfBorrow
Identical to std::borrow::Borrow except omitting blanket impls to facilitate other borrowing patterns.
PhfEq
Trait for comparing stored PHF keys with runtime lookup keys.
PhfHash
A trait implemented by types which can be used in PHF data structures.

FunctionsΒ§

displace
fmt_array πŸ”’
fmt_slice πŸ”’
get_index
Return an index into phf_generator::HashState::map.
hash
key is from phf_generator::HashState.

Type AliasesΒ§

HashKey
A central typedef for hash keys