use super::Result; use crate::Error; pub trait NotFound { #[must_use] fn is_not_found(&self) -> bool; } impl NotFound for Result { #[inline] fn is_not_found(&self) -> bool { self.as_ref().is_err_and(Error::is_not_found) } }