use super::Result; use crate::{error, 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) } }