Type Alias rustc_errors::PErr
source · pub type PErr<'a> = DiagnosticBuilder<'a>;Aliased Type§
struct PErr<'a> {
state: DiagnosticBuilderState<'a>,
diagnostic: Box<Diagnostic>,
_marker: PhantomData<ErrorGuaranteed>,
}Fields§
§state: DiagnosticBuilderState<'a>§diagnostic: Box<Diagnostic>Diagnostic is a large type, and DiagnosticBuilder is often used as a
return value, especially within the frequently-used PResult type.
In theory, return value optimization (RVO) should avoid unnecessary
copying. In practice, it does not (at the time of writing).
_marker: PhantomData<ErrorGuaranteed>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: 16 bytes