Lines Matching refs:hasher
605 pub fn shrink_to(&mut self, min_size: usize, hasher: impl Fn(&T) -> u64) { in shrink_to()
631 .resize(min_size, hasher, Fallibility::Infallible) in shrink_to()
643 pub fn reserve(&mut self, additional: usize, hasher: impl Fn(&T) -> u64) { in reserve()
647 .reserve_rehash(additional, hasher, Fallibility::Infallible) in reserve()
661 hasher: impl Fn(&T) -> u64, in try_reserve()
664 self.reserve_rehash(additional, hasher, Fallibility::Fallible) in try_reserve()
676 hasher: impl Fn(&T) -> u64, in reserve_rehash()
688 self.rehash_in_place(hasher); in reserve_rehash()
695 hasher, in reserve_rehash()
705 fn rehash_in_place(&mut self, hasher: impl Fn(&T) -> u64) { in rehash_in_place()
737 let hash = hasher(item.as_ref()); in rehash_in_place()
783 hasher: impl Fn(&T) -> u64, in resize()
794 let hash = hasher(item.as_ref()); in resize()
818 pub fn insert(&mut self, hash: u64, value: T, hasher: impl Fn(&T) -> u64) -> Bucket<T> { in insert()
827 self.reserve(1, hasher); in insert()
864 pub fn insert_entry(&mut self, hash: u64, value: T, hasher: impl Fn(&T) -> u64) -> &mut T { in insert_entry()
865 unsafe { self.insert(hash, value, hasher).as_mut() } in insert_entry()
1609 pub fn clone_from_with_hasher(&mut self, source: &Self, hasher: impl Fn(&T) -> u64) { in clone_from_with_hasher()
1630 let hash = hasher(&item); in clone_from_with_hasher()
2241 let hasher = |i: &u64| *i; in rehash() localVariable
2243 table.insert(i, i, hasher); in rehash()
2253 table.rehash_in_place(hasher); in rehash()