[−][src]Struct rustc_errors::diagnostic_builder::DiagnosticBuilderInner

#[must_use]pub(in diagnostic_builder) struct DiagnosticBuilderInner<'a> {
    handler: &'a Handler,
    diagnostic: Diagnostic,
    allow_suggestions: bool,
}

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 Handlerdiagnostic: Diagnosticallow_suggestions: bool

Trait Implementations

impl<'a> Clone for DiagnosticBuilderInner<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.