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

Method is_hash_error

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

Returns `true` if this is a hash-related error.

(&self)

Source from the content-addressed store, hash-verified

271
272 /// Returns `true` if this is a hash-related error.
273 pub fn is_hash_error(&self) -> bool {
274 matches!(
275 self,
276 FormatError::HashTableFull
277 | FormatError::HashIndexOutOfBounds { .. }
278 | FormatError::HashMismatch { .. }
279 | FormatError::HashNotFound { .. }
280 )
281 }
282
283 /// Returns `true` if this is a format/structural error.
284 pub fn is_format_error(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected