The object ID representing the empty tree.
(self)
| 316 | |
| 317 | /// The object ID representing the empty tree. |
| 318 | pub const fn empty_tree(self) -> &'static ObjectID { |
| 319 | match self { |
| 320 | HashAlgorithm::SHA1 => &Self::SHA1_EMPTY_TREE, |
| 321 | HashAlgorithm::SHA256 => &Self::SHA256_EMPTY_TREE, |
| 322 | } |
| 323 | } |
| 324 | |
| 325 | /// The object ID which is all zeros. |
| 326 | pub const fn null_oid(self) -> &'static ObjectID { |
no outgoing calls