pub trait IntoDiagnosticArg {
    // Required method
    fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static>;
}
Expand description

Converts a value of a type into a DiagnosticArg (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 DiagnosticArgValue, which enables types from other rustc_* crates to implement this.

Required Methods§

Implementations on Foreign Types§

source§

impl IntoDiagnosticArg for u128

source§

impl IntoDiagnosticArg for i8

source§

impl IntoDiagnosticArg for i128

source§

impl IntoDiagnosticArg for Level

source§

impl IntoDiagnosticArg for u16

source§

impl IntoDiagnosticArg for Visibility

source§

impl IntoDiagnosticArg for ParseIntError

source§

impl IntoDiagnosticArg for ConstContext

source§

impl IntoDiagnosticArg for MacroRulesNormalizedIdent

source§

impl IntoDiagnosticArg for SplitDebuginfo

source§

impl IntoDiagnosticArg for ExitStatus

source§

impl<'a> IntoDiagnosticArg for &'a Path

source§

impl IntoDiagnosticArg for Backtrace

source§

impl IntoDiagnosticArg for Ident

source§

impl IntoDiagnosticArg for CString

source§

impl IntoDiagnosticArg for char

source§

impl IntoDiagnosticArg for i16

source§

impl IntoDiagnosticArg for FloatTy

source§

impl IntoDiagnosticArg for TokenKind

source§

impl<'a> IntoDiagnosticArg for &'a str

source§

impl IntoDiagnosticArg for Target

source§

impl IntoDiagnosticArg for SmallCStr

source§

impl IntoDiagnosticArg for Error

source§

impl<'a, T: Clone + IntoDiagnosticArg> IntoDiagnosticArg for &'a T

source§

impl IntoDiagnosticArg for String

source§

impl IntoDiagnosticArg for Path

source§

impl IntoDiagnosticArg for bool

source§

impl IntoDiagnosticArg for usize

source§

impl IntoDiagnosticArg for Edition

source§

impl<'a> IntoDiagnosticArg for Cow<'a, str>

source§

impl IntoDiagnosticArg for PanicStrategy

source§

impl IntoDiagnosticArg for i32

source§

impl IntoDiagnosticArg for NonZeroU32

source§

impl IntoDiagnosticArg for u64

source§

impl IntoDiagnosticArg for Token

source§

impl IntoDiagnosticArg for Expr

source§

impl IntoDiagnosticArg for StackProtector

source§

impl IntoDiagnosticArg for Box<dyn Error>

source§

impl IntoDiagnosticArg for Symbol

source§

impl IntoDiagnosticArg for &TargetTriple

source§

impl IntoDiagnosticArg for u32

source§

impl IntoDiagnosticArg for u8

source§

impl IntoDiagnosticArg for ParamKindOrd

source§

impl<Id> IntoDiagnosticArg for Res<Id>

source§

impl IntoDiagnosticArg for i64

source§

impl IntoDiagnosticArg for PathBuf

Implementors§