We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79a7da commit ed458c0Copy full SHA for ed458c0
gix-hash/src/object_id.rs
@@ -123,6 +123,7 @@ impl ObjectId {
123
124
/// Returns an instances whose bytes are all zero.
125
#[inline]
126
+ #[doc(alias = "zero", alias = "git2")]
127
pub const fn null(kind: Kind) -> ObjectId {
128
match kind {
129
Kind::Sha1 => Self::null_sha1(),
@@ -131,6 +132,7 @@ impl ObjectId {
131
132
133
/// Returns `true` if this hash consists of all null bytes.
134
135
+ #[doc(alias = "is_zero", alias = "git2")]
136
pub fn is_null(&self) -> bool {
137
match self {
138
ObjectId::Sha1(digest) => &digest[..] == oid::null_sha1().as_bytes(),
0 commit comments