The length of binary object IDs in this algorithm in bytes.
(self)
| 286 | |
| 287 | /// The length of binary object IDs in this algorithm in bytes. |
| 288 | pub const fn raw_len(self) -> usize { |
| 289 | match self { |
| 290 | HashAlgorithm::SHA1 => 20, |
| 291 | HashAlgorithm::SHA256 => 32, |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | /// The length of object IDs in this algorithm in hexadecimal characters. |
| 296 | pub const fn hex_len(self) -> usize { |
no outgoing calls
no test coverage detected