Check if this error indicates data corruption. # Returns `true` if the error suggests repository corruption.
(&self)
| 418 | /// |
| 419 | /// `true` if the error suggests repository corruption. |
| 420 | pub fn is_corruption(&self) -> bool { |
| 421 | matches!( |
| 422 | self, |
| 423 | Self::Corruption | Self::BlockNotFound { .. } | Self::InconsistentEdge { .. } |
| 424 | ) |
| 425 | } |
| 426 | |
| 427 | /// Check if this error is recoverable. |
| 428 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected