pub struct DiagnosticsInner {
pub message: String,
pub primary_location: SourceLocation,
pub secondary_locations: Option<Vec<SourceLocation>>,
pub error_code: &'static str,
pub sub_diagnostics: Vec<Diagnostic>,
pub internal_error: Option<Error>,
}Fields§
§message: StringThe Description of the error being reported.
primary_location: SourceLocationPrimary location where the diagnostic occurred
secondary_locations: Option<Vec<SourceLocation>>Seconday locations relevant to the diagnostics
error_code: &'static strError code for reference in the documentation
sub_diagnostics: Vec<Diagnostic>Children of the current diagnostic
internal_error: Option<Error>If the diagnostic is caused by an error, this field contains the original error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiagnosticsInner
impl RefUnwindSafe for DiagnosticsInner
impl Send for DiagnosticsInner
impl Sync for DiagnosticsInner
impl Unpin for DiagnosticsInner
impl UnsafeUnpin for DiagnosticsInner
impl UnwindSafe for DiagnosticsInner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more