pub struct DiagnosticView<'a> {
pub severity: Severity,
pub span: Span,
pub message: &'a str,
pub help: &'a [String],
pub notes: &'a [(Span, String)],
}Expand description
Borrowed diagnostic fields for callers with a different owned diagnostic model.
Fields§
§severity: Severity§span: Span§message: &'a str§help: &'a [String]§notes: &'a [(Span, String)]Trait Implementations§
Source§impl<'a> From<&'a Diagnostic> for DiagnosticView<'a>
impl<'a> From<&'a Diagnostic> for DiagnosticView<'a>
Source§fn from(value: &'a Diagnostic) -> Self
fn from(value: &'a Diagnostic) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for DiagnosticView<'a>
impl<'a> RefUnwindSafe for DiagnosticView<'a>
impl<'a> Send for DiagnosticView<'a>
impl<'a> Sync for DiagnosticView<'a>
impl<'a> Unpin for DiagnosticView<'a>
impl<'a> UnsafeUnpin for DiagnosticView<'a>
impl<'a> UnwindSafe for DiagnosticView<'a>
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