Struct rustc_errors::diagnostic_builder::DiagnosticBuilderInner [−][src]
struct DiagnosticBuilderInner<'a> {
handler: &'a Handler,
diagnostic: Diagnostic,
allow_suggestions: bool,
}
Expand description
This is a large type, and 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). The split between DiagnosticBuilder
and
DiagnosticBuilderInner
exists to avoid many memcpy
calls.
Fields
handler: &'a Handler
diagnostic: Diagnostic
allow_suggestions: bool
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DiagnosticBuilderInner<'a>
impl<'a> !Send for DiagnosticBuilderInner<'a>
impl<'a> !Sync for DiagnosticBuilderInner<'a>
impl<'a> Unpin for DiagnosticBuilderInner<'a>
impl<'a> !UnwindSafe for DiagnosticBuilderInner<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
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: 184 bytes