Returns `true` if this is a format/structural error.
(&self)
| 282 | |
| 283 | /// Returns `true` if this is a format/structural error. |
| 284 | pub fn is_format_error(&self) -> bool { |
| 285 | matches!( |
| 286 | self, |
| 287 | FormatError::InvalidMagic { .. } |
| 288 | | FormatError::UnsupportedVersion { .. } |
| 289 | | FormatError::InvalidHeader { .. } |
| 290 | | FormatError::InvalidChangeMetadata { .. } |
| 291 | | FormatError::InvalidSectionType { .. } |
| 292 | | FormatError::UnexpectedSection { .. } |
| 293 | | FormatError::SectionTruncated { .. } |
| 294 | | FormatError::UnexpectedEof { .. } |
| 295 | ) |
| 296 | } |
| 297 | |
| 298 | /// Returns a human-readable suggestion for how to fix this error. |
| 299 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected