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

Method is_compression

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

Returns `true` if this is a compression or decompression error.

(&self)

Source from the content-addressed store, hash-verified

266
267 /// Returns `true` if this is a compression or decompression error.
268 pub fn is_compression(&self) -> bool {
269 matches!(self, FormatError::Compress(_) | FormatError::Decompress(_))
270 }
271
272 /// Returns `true` if this is a hash-related error.
273 pub fn is_hash_error(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected