(&mut self)
| 70 | } |
| 71 | |
| 72 | pub fn as_mut_slice(&mut self) -> Result<&mut [u8], InvalidHashAlgorithm> { |
| 73 | match HashAlgorithm::from_u32(self.algo) { |
| 74 | Some(algo) => Ok(&mut self.hash[0..algo.raw_len()]), |
| 75 | None => Err(InvalidHashAlgorithm(self.algo)), |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | impl Display for ObjectID { |
nothing calls this directly
no test coverage detected