Struct ph::FPHash2Conf
source · [−]pub struct FPHash2Conf<GS: GroupSize = TwoToPowerBits, SS: SeedSize = TwoToPowerBitsStatic<2>, S = BuildDefaultSeededHasher> { /* private fields */ }Expand description
Configuration that is accepted by FPHash2 constructors.
Implementations
sourceimpl FPHash2Conf
impl FPHash2Conf
sourcepub fn lsize(relative_level_size: u16) -> Self
pub fn lsize(relative_level_size: u16) -> Self
Returns configuration that uses at each level a bit-array of size relative_level_size
given as a percent of number of input keys for the level.
sourcepub fn lsize_threads(relative_level_size: u16, threads: isize) -> Self
pub fn lsize_threads(relative_level_size: u16, threads: isize) -> Self
Returns configuration that uses given number of threads and
at each level a bit-array of size relative_level_size
given as a percent of number of input keys for the level.
sourceimpl<SS: SeedSize> FPHash2Conf<TwoToPowerBits, SS>
impl<SS: SeedSize> FPHash2Conf<TwoToPowerBits, SS>
sourcepub fn bps(bits_per_seed: SS) -> Self
pub fn bps(bits_per_seed: SS) -> Self
Returns configuration that uses seeds of size given in bits.
pub fn bps_lsize(bits_per_seed: SS, relative_level_size: u16) -> Self
pub fn bps_threads(bits_per_seed: SS, threads: isize) -> Self
pub fn bps_lsize_threads(
bits_per_seed: SS,
relative_level_size: u16,
threads: isize
) -> Self
sourceimpl<GS: GroupSize> FPHash2Conf<GS>
impl<GS: GroupSize> FPHash2Conf<GS>
sourceimpl<GS: GroupSize, SS: SeedSize> FPHash2Conf<GS, SS>
impl<GS: GroupSize, SS: SeedSize> FPHash2Conf<GS, SS>
pub fn bps_bpg(bits_per_seed: SS, bits_per_group: GS) -> Self
pub fn bps_bpg_lsize(
bits_per_seed: SS,
bits_per_group: GS,
relative_level_size: u16
) -> Self
pub fn bps_bpg_lsize_threads(
bits_per_seed: SS,
bits_per_group: GS,
relative_level_size: u16,
threads: isize
) -> Self
sourceimpl<GS: GroupSize, S> FPHash2Conf<GS, TwoToPowerBitsStatic<2>, S>
impl<GS: GroupSize, S> FPHash2Conf<GS, TwoToPowerBitsStatic<2>, S>
pub fn hash_bpg(hash: S, bits_per_group: GS) -> Self
pub fn hash_bpg_lsize(
hash: S,
bits_per_group: GS,
relative_level_size: u16
) -> Self
sourceimpl<GS: GroupSize, SS: SeedSize, S> FPHash2Conf<GS, SS, S>
impl<GS: GroupSize, SS: SeedSize, S> FPHash2Conf<GS, SS, S>
pub fn hash_bps_bpg(hash: S, bits_per_seed: SS, bits_per_group: GS) -> Self
pub fn hash_bps_bpg_lsize(
hash: S,
bits_per_seed: SS,
bits_per_group: GS,
relative_level_size: u16
) -> Self
pub fn hash_bps_bpg_lsize_threads(
hash: S,
bits_per_seed: SS,
bits_per_group: GS,
relative_level_size: u16,
threads: isize
) -> Self
Trait Implementations
Auto Trait Implementations
impl<GS, SS, S> RefUnwindSafe for FPHash2Conf<GS, SS, S> where
GS: RefUnwindSafe,
S: RefUnwindSafe,
SS: RefUnwindSafe,
impl<GS, SS, S> Send for FPHash2Conf<GS, SS, S> where
GS: Send,
S: Send,
SS: Send,
impl<GS, SS, S> Sync for FPHash2Conf<GS, SS, S> where
GS: Sync,
S: Sync,
impl<GS, SS, S> Unpin for FPHash2Conf<GS, SS, S> where
GS: Unpin,
S: Unpin,
SS: Unpin,
impl<GS, SS, S> UnwindSafe for FPHash2Conf<GS, SS, S> where
GS: UnwindSafe,
S: UnwindSafe,
SS: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more