Home
last modified time | relevance | path

Searched refs:build_hasher (Results 1 – 17 of 17) sorted by relevance

/external/rust/crates/ahash/src/
Dspecialize.rs21 fn get_hash<H: Hash + ?Sized, B: BuildHasher>(value: &H, build_hasher: &B) -> u64; in get_hash()
30 fn get_hash<H: Hash + ?Sized, B: BuildHasher>(value: &H, build_hasher: &B) -> u64 { in get_hash()
31 let mut hasher = build_hasher.build_hasher(); in get_hash()
43 default fn get_hash<H: Hash + ?Sized, B: BuildHasher>(value: &H, build_hasher: &B) -> u64 { in get_hash()
44 let mut hasher = build_hasher.build_hasher(); in get_hash()
55 fn get_hash<H: Hash + ?Sized, B: BuildHasher>(value: &H, build_hasher: &B) -> u64 {
56 build_hasher.hash_as_u64(value)
73 fn get_hash<H: Hash + ?Sized, B: BuildHasher>(value: &H, build_hasher: &B) -> u64 { in get_hash()
74 build_hasher.hash_as_fixed_length(value) in get_hash()
81 fn get_hash<H: Hash + ?Sized, B: BuildHasher>(value: &H, build_hasher: &B) -> u64 { in get_hash()
[all …]
Dlib.rs247 RandomState::with_fixed_keys().build_hasher() in default()
267 let mut hasher = self.build_hasher(); in hash_as_u64()
274 let mut hasher = self.build_hasher(); in hash_as_u64()
281 let mut hasher = self.build_hasher(); in hash_as_fixed_length()
288 let mut hasher = self.build_hasher(); in hash_as_fixed_length()
295 let mut hasher = self.build_hasher(); in hash_as_str()
302 let mut hasher = self.build_hasher(); in hash_as_str()
Drandom_state.rs429 fn build_hasher(&self) -> AHasher { in build_hasher() method
494 let mut hasher = AHasherFixed(self.build_hasher()); in hash_as_fixed_length()
501 let mut hasher = AHasherStr(self.build_hasher()); in hash_as_str()
515 assert_ne!(a.build_hasher().finish(), b.build_hasher().finish()); in test_unique()
Daes_hash.rs371 let mut hasher = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in test_sanity()
/external/rust/crates/ahash/tests/
Dmap_tests.rs123 fn test_hash_common_words<B: BuildHasher>(build_hasher: &B) { in test_hash_common_words()
125 check_for_collisions(build_hasher, &word_pairs, 32); in test_hash_common_words()
129 fn check_for_collisions<H: Hash, B: BuildHasher>(build_hasher: &B, items: &[H], bucket_count: usize… in check_for_collisions()
132 let value = hash(item, build_hasher) as usize; in check_for_collisions()
156 fn hash<H: Hash, B: BuildHasher>(b: &H, build_hasher: &B) -> u64 { in hash()
157 build_hasher.hash_one(b) in hash()
162 fn hash<H: Hash, B: BuildHasher>(b: &H, build_hasher: &B) -> u64 { in hash()
163 let mut hasher = build_hasher.build_hasher(); in hash()
170 let build_hasher = RandomState::with_seeds(1, 2, 3, 4); in test_bucket_distribution() localVariable
171 test_hash_common_words(&build_hasher); in test_bucket_distribution()
[all …]
Dnopanic.rs11 let mut hasher1 = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in hash_test_final()
12 let mut hasher2 = RandomState::with_seeds(3, 4, 5, 6).build_hasher(); in hash_test_final()
32 let mut hasher = self.build_hasher(); in hash_one()
41 fn build_hasher(&self) -> Self::Hasher { in build_hasher() method
49 let hasher1 = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in hash_test_specialize()
50 let hasher2 = RandomState::with_seeds(1, 2, 3, 4).build_hasher(); in hash_test_specialize()
Dbench.rs30 let build_hasher = RandomState::with_seeds(1, 2, 3, 4); in ahash() localVariable
31 build_hasher.hash_one(b) in ahash()
/external/rust/crates/tokio/src/loom/std/
Dmod.rs41 let mut hasher = rand_state.build_hasher(); in seed()
/external/rust/crates/tokio-stream/src/
Dstream_map.rs613 let mut hasher = rand_state.build_hasher(); in seed()
/external/rust/crates/tokio-util/src/task/
Djoin_map.rs726 let mut hasher = self.tasks_by_key.hasher().build_hasher(); in hash()
/external/rust/crates/weak-table/src/
Dweak_value_hash_map.rs501 let mut hasher = self.hash_builder.build_hasher(); in hash()
Dweak_weak_hash_map.rs521 let hasher = &mut self.hash_builder.build_hasher(); in hash()
Dweak_key_hash_map.rs584 let hasher = &mut self.hash_builder.build_hasher(); in hash()
/external/rust/crates/hashlink/src/
Dlinked_hash_map.rs1923 fn build_hasher(&self) -> Self { in build_hasher() method
2140 let mut hasher = s.build_hasher(); in hash_key()
/external/rust/crates/hashbrown/src/
Dmap.rs252 let mut state = hash_builder.build_hasher(); in make_hash()
276 let mut state = hash_builder.build_hasher(); in make_insert_hash()
8322 fn build_hasher(&self) -> DefaultHasher { in test_const_with_hasher() method
Dset.rs2759 fn build_hasher(&self) -> DefaultHasher { in test_const_with_hasher() method
/external/rust/crates/indexmap/src/
Dmap.rs346 let mut h = self.hash_builder.build_hasher(); in hash()