summaryrefslogtreecommitdiffstats
path: root/vendor/gix-hashtable/src/lib.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /vendor/gix-hashtable/src/lib.rs
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gix-hashtable/src/lib.rs')
-rw-r--r--vendor/gix-hashtable/src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/gix-hashtable/src/lib.rs b/vendor/gix-hashtable/src/lib.rs
index 476600578..54935bcbc 100644
--- a/vendor/gix-hashtable/src/lib.rs
+++ b/vendor/gix-hashtable/src/lib.rs
@@ -1,4 +1,4 @@
-//! Customized HashMap and Hasher implementation optimized for using `ObjectId`s as keys.
+//! Customized `HashMap` and Hasher implementation optimized for using `ObjectId`s as keys.
//!
//! The crate mirrors `std::collections` in layout for familiarity.
#![deny(missing_docs, rust_2018_idioms)]
@@ -35,7 +35,7 @@ pub mod sync {
///
pub mod hash {
- /// A Hasher for usage with HashMap keys that are already robust hashes (like an `ObjectId`).
+ /// A Hasher for usage with `HashMap` keys that are already robust hashes (like an `ObjectId`).
/// The first `8` bytes of the hash are used as the `HashMap` hash
#[derive(Default, Clone, Copy)]
pub struct Hasher(u64);
@@ -75,7 +75,7 @@ pub mod hash {
panic_other_writers!(write_isize, isize);
}
- /// A Hasher for usage with HashMap keys that are already robust hashes (like an `ObjectId`).
+ /// A Hasher for usage with `HashMap` keys that are already robust hashes (like an `ObjectId`).
/// The first `8` bytes of the hash are used as the `HashMap` hash
#[derive(Default, Clone, Copy)]
pub struct Builder;
@@ -88,9 +88,9 @@ pub mod hash {
}
}
-/// A HashMap for usage with keys that are already robust hashes (like an `ObjectId`).
+/// A `HashMap` for usage with keys that are already robust hashes (like an `ObjectId`).
/// The first `8` bytes of the hash are used as the `HashMap` hash
pub type HashMap<K, V> = hashbrown::HashMap<K, V, hash::Builder>;
-/// A HashSet for usage with keys that are already robust hashes (like an `ObjectId`).
+/// A `HashSet` for usage with keys that are already robust hashes (like an `ObjectId`).
/// The first `8` bytes of the hash are used as the `HashMap` hash
pub type HashSet<T = ObjectId> = hashbrown::HashSet<T, hash::Builder>;