pub struct ExprDiagnostic {
pub code: String,
pub range: ExprDiagnosticRange,
pub severity: Option<ExprDiagnosisSeverity>,
pub message: String,
}Fields§
§code: String§range: ExprDiagnosticRange§severity: Option<ExprDiagnosisSeverity>§message: StringImplementations§
Source§impl ExprDiagnostic
impl ExprDiagnostic
pub fn to_diagnostic(&self, span: &Span) -> Diagnostic<()>
Trait Implementations§
Source§impl Clone for ExprDiagnostic
impl Clone for ExprDiagnostic
Source§fn clone(&self) -> ExprDiagnostic
fn clone(&self) -> ExprDiagnostic
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 ExprDiagnostic
impl Debug for ExprDiagnostic
Source§impl Default for ExprDiagnostic
impl Default for ExprDiagnostic
Source§fn default() -> ExprDiagnostic
fn default() -> ExprDiagnostic
Returns the “default value” for a type. Read more
impl Eq for ExprDiagnostic
Source§impl PartialEq for ExprDiagnostic
impl PartialEq for ExprDiagnostic
Source§fn eq(&self, other: &ExprDiagnostic) -> bool
fn eq(&self, other: &ExprDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExprDiagnostic
Auto Trait Implementations§
impl Freeze for ExprDiagnostic
impl RefUnwindSafe for ExprDiagnostic
impl Send for ExprDiagnostic
impl Sync for ExprDiagnostic
impl Unpin for ExprDiagnostic
impl UnsafeUnpin for ExprDiagnostic
impl UnwindSafe for ExprDiagnostic
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