pub struct HashConfig {
pub deterministic: bool,
pub default_capacity: usize,
pub load_factor: f32,
}Expand description
Configuration for hash-related performance tuning
Fields§
§deterministic: boolWhether to use deterministic hashing (testing only)
default_capacity: usizeInitial capacity hint for HashMaps
load_factor: f32Load factor before rehashing (0.0 to 1.0)
Implementations§
Source§impl HashConfig
impl HashConfig
Sourcepub fn create_map<K, V>(&self) -> HashMap<K, V, RandomState>
pub fn create_map<K, V>(&self) -> HashMap<K, V, RandomState>
Create HashMap using this configuration
Trait Implementations§
Source§impl Clone for HashConfig
impl Clone for HashConfig
Source§fn clone(&self) -> HashConfig
fn clone(&self) -> HashConfig
Returns a duplicate 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 moreSource§impl Debug for HashConfig
impl Debug for HashConfig
Auto Trait Implementations§
impl Freeze for HashConfig
impl RefUnwindSafe for HashConfig
impl Send for HashConfig
impl Sync for HashConfig
impl Unpin for HashConfig
impl UnwindSafe for HashConfig
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