The object ID which is all zeros.
(self)
| 324 | |
| 325 | /// The object ID which is all zeros. |
| 326 | pub const fn null_oid(self) -> &'static ObjectID { |
| 327 | match self { |
| 328 | HashAlgorithm::SHA1 => &Self::SHA1_NULL_OID, |
| 329 | HashAlgorithm::SHA256 => &Self::SHA256_NULL_OID, |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | /// A pointer to the C `struct git_hash_algo` for interoperability with C. |
| 334 | pub fn hash_algo_ptr(self) -> *const c_void { |
no outgoing calls