pub struct SinglePhf<M: Minimality, H: Hasher, E: Encoder> { /* private fields */ }
Expand description
Non-partitioned minimal perfect-hash function
This is a binding for pthash::single_phf<H, dictionary_dictionary, true>
Implementations§
Trait Implementations§
source§impl<M: Minimality, H: Hasher, E: Encoder> Phf for SinglePhf<M, H, E>
impl<M: Minimality, H: Hasher, E: Encoder> Phf for SinglePhf<M, H, E>
source§const MINIMAL: bool = M::AS_BOOL
const MINIMAL: bool = M::AS_BOOL
Whether instances of this function have their values in the range
[0; num_keys)
.source§fn build_in_internal_memory_from_bytes<Keys: IntoIterator>(
&mut self,
keys: Keys,
config: &BuildConfiguration
) -> Result<BuildTimings, Exception>where
<Keys as IntoIterator>::IntoIter: ExactSizeIterator + Clone,
<<Keys as IntoIterator>::IntoIter as Iterator>::Item: Hashable,
fn build_in_internal_memory_from_bytes<Keys: IntoIterator>(
&mut self,
keys: Keys,
config: &BuildConfiguration
) -> Result<BuildTimings, Exception>where
<Keys as IntoIterator>::IntoIter: ExactSizeIterator + Clone,
<<Keys as IntoIterator>::IntoIter as Iterator>::Item: Hashable,
Builds the function from a set of keys Read more
source§fn num_bits(&self) -> usize
fn num_bits(&self) -> usize
Returns the number of bits needed to represent this perfect-hash function
source§fn table_size(&self) -> u64
fn table_size(&self) -> u64
Largest value returned by
Self::hash
plus 1impl<M: Minimality, H: Hasher, E: Encoder> Send for SinglePhf<M, H, E>
impl<M: Minimality, H: Hasher, E: Encoder> Sync for SinglePhf<M, H, E>
Auto Trait Implementations§
impl<M, H, E> RefUnwindSafe for SinglePhf<M, H, E>where
H: RefUnwindSafe,
<M as SealedMinimality>::SinglePhfBackend<<H as Hasher>::Hash, E>: RefUnwindSafe,
impl<M, H, E> Unpin for SinglePhf<M, H, E>where
H: Unpin,
impl<M, H, E> UnwindSafe for SinglePhf<M, H, E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more