Trait rustc_errors::IntoDiagnosticArg
source · pub trait IntoDiagnosticArg {
// Required method
fn into_diagnostic_arg(self) -> DiagArgValue;
}Expand description
Converts a value of a type into a DiagArg (typically a field of an IntoDiagnostic struct).
Implemented as a custom trait rather than From so that it is implemented on the type being
converted rather than on DiagArgValue, which enables types from other rustc_* crates to
implement this.