Trait rustc_errors::IntoDiagArg
source · pub trait IntoDiagArg {
// Required method
fn into_diag_arg(self) -> DiagArgValue;
}
Expand description
Converts a value of a type into a DiagArg
(typically a field of an Diag
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.