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

Method is_not_found

atomic-core/src/output/repo/error.rs:258–260  ·  view source on GitHub ↗

Check if this is a "not found" error. Returns `true` for `PathNotFound` and `InodeNotFound` variants. # Example ```rust use atomic_core::output::repo::OutputError; let path_err = OutputError::path_not_found("missing.rs"); assert!(path_err.is_not_found()); let io_err = OutputError::io(std::io::Error::new( std::io::ErrorKind::Other, "other error" )); assert!(!io_err.is_not_found()); ```

(&self)

Source from the content-addressed store, hash-verified

256 /// assert!(!io_err.is_not_found());
257 /// ```
258 pub fn is_not_found(&self) -> bool {
259 matches!(self, Self::PathNotFound { .. } | Self::InodeNotFound { .. })
260 }
261
262 /// Check if this is an I/O error.
263 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected