pub fn source_eq<T>(&self, other_err: T) -> bool
    where
        T: Error + Eq + 'static,
    {
        self.source()
            .map_or(false, |err| err.downcast_ref() == Some(&other_err))
    }
/// Compares the wrapped source error (where applicable) with the given
/// error.
Compares the wrapped source error (where applicable) with the given
error.
Compares the wrapped source error ( where applicable ) with the given error .
pub fn source_eq<T>(&self, other_err: T) -> bool
    where
        T: Error + Eq + 'static,
    {
        self.source()
            .map_or(false, |err| err.downcast_ref() == Some(&other_err))
    }
pub fn source_eq < T > ( & self , other_err : T ) -> bool where T : Error + Eq + ' static , { self . source ( ) . map_or ( false , | err | err . downcast_ref ( ) == Some ( & other_err ) ) }
Compares the wrapped source error (where applicable) with the given
error.
Compares the wrapped source error ( where applicable ) with the given error .
&self
other_err
T
&self
other_err
T