Home
last modified time | relevance | path

Searched refs:with_hasher (Results 1 – 19 of 19) sorted by relevance

/external/rust/crates/ahash/src/
Dhash_set.rs34 AHashSet(HashSet::with_hasher(RandomState::default())) in new()
44 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() function
45 AHashSet(HashSet::with_hasher(hash_builder)) in with_hasher()
Dhash_map.rs36 AHashMap(HashMap::with_hasher(RandomState::default())) in new()
46 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() function
47 AHashMap(HashMap::with_hasher(hash_builder)) in with_hasher()
/external/rust/crates/weak-table/src/
Dptr_weak_hash_set.rs33 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() function
34 PtrWeakHashSet(base::PtrWeakKeyHashMap::with_hasher(hash_builder)) in with_hasher()
Dweak_hash_set.rs28 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() method
29 WeakHashSet(base::WeakKeyHashMap::with_hasher(hash_builder)) in with_hasher()
Dptr_weak_weak_hash_map.rs35 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() function
36 PtrWeakWeakHashMap(base::WeakWeakHashMap::with_hasher(hash_builder)) in with_hasher()
Dptr_weak_key_hash_map.rs34 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() function
35 PtrWeakKeyHashMap(base::WeakKeyHashMap::with_hasher(hash_builder)) in with_hasher()
Dweak_value_hash_map.rs180 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() method
485 WeakValueHashMap::with_hasher(Default::default()) in default()
495 let mut result = WeakValueHashMap::with_hasher(Default::default()); in from_iter()
Dweak_weak_hash_map.rs180 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() method
500 WeakWeakHashMap::with_hasher(Default::default()) in default()
510 let mut result = WeakWeakHashMap::with_hasher(Default::default()); in from_iter()
Dweak_key_hash_map.rs219 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() method
555 WeakKeyHashMap::with_hasher(Default::default()) in default()
588 let mut result = WeakKeyHashMap::with_hasher(Default::default()); in from_iter()
/external/rust/crates/hashlink/src/
Dlru_cache.rs42 pub fn with_hasher(capacity: usize, hash_builder: S) -> Self { in with_hasher() method
44 map: LinkedHashMap::with_hasher(hash_builder), in with_hasher()
Dlinked_hash_set.rs83 pub fn with_hasher(hasher: S) -> LinkedHashSet<T, S> { in with_hasher() function
85 map: LinkedHashMap::with_hasher(hasher), in with_hasher()
353 let mut set = LinkedHashSet::with_hasher(Default::default()); in from_iter()
Dlinked_hash_map.rs51 map: HashMap::with_hasher(NullHasher), in new()
70 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() method
73 map: HashMap::with_hasher(NullHasher), in with_hasher()
475 Self::with_hasher(S::default()) in default()
599 let mut map = Self::with_hasher(self.hash_builder.clone()); in clone()
/external/rust/crates/lru-cache/src/
Dlib.rs80 pub fn with_hasher(capacity: usize, hash_builder: S) -> Self { in with_hasher() method
81 LruCache { map: LinkedHashMap::with_hasher(hash_builder), max_size: capacity } in with_hasher()
/external/rust/crates/hashlink/
DCHANGELOG.md11 - Adjust trait bounds for `LruCache::with_hasher`, `LruCache::capacity`,
/external/rust/crates/hashbrown/
DCHANGELOG.md82 - `HashMap::with_hasher` and `HashSet::with_hasher` are now `const fn`. (#195)
84 `with_capacity`, `with_hasher`, and `with_capacity_and_hasher`. (#185)
/external/rust/crates/linked-hash-map/src/
Dlib.rs198 pub fn with_hasher(hash_builder: S) -> Self { in with_hasher() method
199 Self::with_map(HashMap::with_hasher(hash_builder)) in with_hasher()
721 let mut map = Self::with_hasher(self.map.hasher().clone()); in clone()
728 fn default() -> Self { Self::with_hasher(S::default()) } in default()
/external/rust/crates/hashbrown/src/
Dset.rs413 pub const fn with_hasher(hasher: S) -> Self { in with_hasher() method
415 map: HashMap::with_hasher(hasher), in with_hasher()
1855 let s = HS::with_hasher(DefaultHashBuilder::default()); in test_zero_capacities()
2273 const EMPTY_SET: HashSet<u32, MyHasher> = HashSet::with_hasher(MyHasher); in test_const_with_hasher()
Dmap.rs355 pub const fn with_hasher(hash_builder: S) -> Self { in with_hasher() method
3521 let m = HM::with_hasher(DefaultHashBuilder::default()); in test_zero_capacities()
4887 HashMap::with_hasher(MyHasher); in test_const_with_hasher()
/external/rust/crates/hashlink/tests/
Dlinked_hash_set.rs63 let s = HS::with_hasher(DefaultHashBuilder::default()); in test_zero_capacities()