pub struct PrismDiagnostic {
pub severity: DiagnosticSeverity,
pub code: String,
pub message: String,
pub span: Option<PrismSpan>,
}Expand description
A parse diagnostic surfaced by the Prism.
Fields§
§severity: DiagnosticSeveritySeverity label.
code: StringStable diagnostic code.
message: StringHuman-readable diagnostic message.
span: Option<PrismSpan>Optional source span.
Implementations§
Trait Implementations§
Source§impl Clone for PrismDiagnostic
impl Clone for PrismDiagnostic
Source§fn clone(&self) -> PrismDiagnostic
fn clone(&self) -> PrismDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrismDiagnostic
impl Debug for PrismDiagnostic
impl Eq for PrismDiagnostic
Source§impl PartialEq for PrismDiagnostic
impl PartialEq for PrismDiagnostic
Source§fn eq(&self, other: &PrismDiagnostic) -> bool
fn eq(&self, other: &PrismDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrismDiagnostic
Auto Trait Implementations§
impl Freeze for PrismDiagnostic
impl RefUnwindSafe for PrismDiagnostic
impl Send for PrismDiagnostic
impl Sync for PrismDiagnostic
impl Unpin for PrismDiagnostic
impl UnsafeUnpin for PrismDiagnostic
impl UnwindSafe for PrismDiagnostic
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