Struct pthash::PartitionedPhf
source · pub struct PartitionedPhf<M: Minimality, H: Hasher, E: Encoder> { /* private fields */ }
Expand description
Partitioned minimal perfect hash function
This is a binding for pthash::partitioned_phf<H, dictionary_dictionary, true>
Implementations§
source§impl<M: Minimality, H: Hasher, E: Encoder> PartitionedPhf<M, H, E>
impl<M: Minimality, H: Hasher, E: Encoder> PartitionedPhf<M, H, E>
Trait Implementations§
source§impl<M: Minimality, H: Hasher, E: Encoder> Phf for PartitionedPhf<M, H, E>
impl<M: Minimality, H: Hasher, E: Encoder> Phf for PartitionedPhf<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 PartitionedPhf<M, H, E>
impl<M: Minimality, H: Hasher, E: Encoder> Sync for PartitionedPhf<M, H, E>
Auto Trait Implementations§
impl<M, H, E> RefUnwindSafe for PartitionedPhf<M, H, E>where
M: RefUnwindSafe,
<M as SealedMinimality>::PartitionedPhfBackend<<H as Hasher>::Hash, E>: RefUnwindSafe,
impl<M, H, E> Unpin for PartitionedPhf<M, H, E>where
M: Unpin,
impl<M, H, E> UnwindSafe for PartitionedPhf<M, H, E>where
M: UnwindSafe,
<M as SealedMinimality>::PartitionedPhfBackend<<H as Hasher>::Hash, E>: UnwindSafe,
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