]> git.proxmox.com Git - rustc.git/blobdiff - vendor/gix-hash/src/object_id.rs
New upstream version 1.75.0+dfsg1
[rustc.git] / vendor / gix-hash / src / object_id.rs
index fe1b2e9ba4dcc7e4b466d4a428684344e3b17dcf..4234d63b5f99f764bde54e89da68592262c59f27 100644 (file)
@@ -123,6 +123,7 @@ impl ObjectId {
 
     /// Returns an instances whose bytes are all zero.
     #[inline]
+    #[doc(alias = "zero", alias = "git2")]
     pub const fn null(kind: Kind) -> ObjectId {
         match kind {
             Kind::Sha1 => Self::null_sha1(),
@@ -131,6 +132,7 @@ impl ObjectId {
 
     /// Returns `true` if this hash consists of all null bytes.
     #[inline]
+    #[doc(alias = "is_zero", alias = "git2")]
     pub fn is_null(&self) -> bool {
         match self {
             ObjectId::Sha1(digest) => &digest[..] == oid::null_sha1().as_bytes(),