Struct ph::FPHashConf
source · pub struct FPHashConf<S = BuildDefaultSeededHasher> {
pub hash: S,
pub relative_level_size: u16,
pub use_multiple_threads: bool,
}Expand description
Configuration that is accepted by FPHash constructors.
Fields§
§hash: S§relative_level_size: u16§use_multiple_threads: boolImplementations§
source§impl FPHashConf
impl FPHashConf
sourcepub fn threads(use_multiple_threads: bool) -> Self
pub fn threads(use_multiple_threads: bool) -> Self
Returns configuration that potentially uses multiple threads to build FPHash.
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,
use_multiple_threads: bool
) -> Self
pub fn lsize_threads(
relative_level_size: u16,
use_multiple_threads: bool
) -> Self
Returns configuration that potentially uses multiple 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.
source§impl<S> FPHashConf<S>
impl<S> FPHashConf<S>
pub fn hash(hash: S) -> Self
pub fn hash_lsize(hash: S, relative_level_size: u16) -> Self
pub fn hash_lsize_threads(
hash: S,
relative_level_size: u16,
use_multiple_threads: bool
) -> Self
Trait Implementations§
source§impl<S: Clone> Clone for FPHashConf<S>
impl<S: Clone> Clone for FPHashConf<S>
source§fn clone(&self) -> FPHashConf<S>
fn clone(&self) -> FPHashConf<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more