Type Alias rustc_errors::diagnostic::DiagnosticArgName
source · pub type DiagnosticArgName<'source> = Cow<'source, str>;
Expand description
Name of a diagnostic argument.
Aliased Type§
enum DiagnosticArgName<'source> {
Borrowed(&'source str),
Owned(String),
}
Variants§
Trait Implementations§
1.0.0 · source§impl<B> Deref for Cow<'_, B>where
B: ToOwned + ?Sized,
<B as ToOwned>::Owned: Borrow<B>,
impl<B> Deref for Cow<'_, B>where B: ToOwned + ?Sized, <B as ToOwned>::Owned: Borrow<B>,
source§impl<'a> IntoDiagnosticArg for Cow<'a, str>
impl<'a> IntoDiagnosticArg for Cow<'a, str>
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Borrowed
: 24 bytesOwned
: 24 bytes