pub fn fmt_diag_string<'a, T>(e: &'a T) -> Stringwhere T: ErrorDiagnostic + AsError, ResultType: From<&'a T::Target>,
Formats a full diagnostic view of an error for logging and tracing.