MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_format_error

Method is_format_error

atomic-core/src/change/format_v3/error.rs:284–296  ·  view source on GitHub ↗

Returns `true` if this is a format/structural error.

(&self)

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected