Trait rustc_errors::diagnostic::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.

Required Methods§

Implementations on Foreign Types§

source§

impl IntoDiagArg for &TargetTriple

source§

impl IntoDiagArg for ParamKindOrd

source§

impl IntoDiagArg for TokenKind

source§

impl IntoDiagArg for Namespace

source§

impl IntoDiagArg for ConstContext

source§

impl IntoDiagArg for Target

source§

impl IntoDiagArg for Level

source§

impl IntoDiagArg for Edition

source§

impl IntoDiagArg for PanicStrategy

source§

impl IntoDiagArg for SplitDebuginfo

source§

impl IntoDiagArg for StackProtector

source§

impl IntoDiagArg for ClosureKind

source§

impl IntoDiagArg for FloatTy

source§

impl IntoDiagArg for bool

source§

impl IntoDiagArg for char

source§

impl IntoDiagArg for i8

source§

impl IntoDiagArg for i16

source§

impl IntoDiagArg for i32

source§

impl IntoDiagArg for i64

source§

impl IntoDiagArg for i128

source§

impl IntoDiagArg for isize

source§

impl IntoDiagArg for u8

source§

impl IntoDiagArg for u16

source§

impl IntoDiagArg for u32

source§

impl IntoDiagArg for u64

source§

impl IntoDiagArg for u128

source§

impl IntoDiagArg for usize

source§

impl IntoDiagArg for Expr

source§

impl IntoDiagArg for Path

source§

impl IntoDiagArg for Visibility

source§

impl IntoDiagArg for Token

source§

impl IntoDiagArg for SmallCStr

source§

impl IntoDiagArg for Ident

source§

impl IntoDiagArg for MacroRulesNormalizedIdent

source§

impl IntoDiagArg for Symbol

source§

impl IntoDiagArg for Box<dyn Error>

source§

impl IntoDiagArg for CString

source§

impl IntoDiagArg for String

source§

impl IntoDiagArg for Vec<char>

source§

impl IntoDiagArg for ParseIntError

source§

impl IntoDiagArg for NonZero<u32>

source§

impl IntoDiagArg for Backtrace

source§

impl IntoDiagArg for Error

source§

impl IntoDiagArg for PathBuf

source§

impl IntoDiagArg for ExitStatus

source§

impl<'a> IntoDiagArg for &'a str

source§

impl<'a> IntoDiagArg for &'a Path

source§

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

source§

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

source§

impl<I: Interner> IntoDiagArg for UnevaluatedConst<I>

source§

impl<I: Interner> IntoDiagArg for ExistentialTraitRef<I>

source§

impl<I: Interner> IntoDiagArg for TraitRef<I>

source§

impl<I: Interner> IntoDiagArg for FnSig<I>

source§

impl<I: Interner, T> IntoDiagArg for Binder<I, T>
where T: IntoDiagArg,

source§

impl<Id> IntoDiagArg for Res<Id>

Implementors§